diff --git a/client/allocrunner/taskrunner/task_runner_test.go b/client/allocrunner/taskrunner/task_runner_test.go index d132c9a16..e7ec3cb4d 100644 --- a/client/allocrunner/taskrunner/task_runner_test.go +++ b/client/allocrunner/taskrunner/task_runner_test.go @@ -817,7 +817,7 @@ func TestTaskRunner_BlockForVault(t *testing.T) { // with 0 sleeping. select { case <-tr.WaitCh(): - case <-time.After(time.Duration(testutil.TestMultiplier()*15) * time.Second): + case <-time.After(15 * time.Second * time.Duration(testutil.TestMultiplier())): require.Fail(t, "timed out waiting for batch task to exit") }