From eb8b19ec8277fe0f7cac1d7458cee1156f8aae82 Mon Sep 17 00:00:00 2001 From: Mahmood Ali Date: Thu, 14 Feb 2019 08:12:06 -0800 Subject: [PATCH] test: improve readability of duration Co-Authored-By: schmichael --- client/allocrunner/taskrunner/task_runner_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") }