Explorar o código

fix flaky test

Darien Raymond %!s(int64=7) %!d(string=hai) anos
pai
achega
45e95bb10e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      common/signal/timer_test.go

+ 1 - 1
common/signal/timer_test.go

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