fix flaky test

pull/1343/head v3.49
Darien Raymond 2018-10-25 09:49:13 +02:00
parent 53870f1ea7
commit 42e4f06fe9
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ func TestActivityTimer(t *testing.T) {
assert := With(t)
ctx, cancel := context.WithCancel(context.Background())
timer := CancelAfterInactivity(ctx, cancel, time.Second*5)
timer := CancelAfterInactivity(ctx, cancel, time.Second*4)
time.Sleep(time.Second * 6)
assert(ctx.Err(), IsNotNil)
runtime.KeepAlive(timer)