test: improve readability of duration

Co-Authored-By: schmichael <michael.schurter@gmail.com>
This commit is contained in:
Mahmood Ali 2019-02-14 08:12:06 -08:00 committed by GitHub
parent 16d3414842
commit 87be233aca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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")
}