소스 검색

fix flaky test

Darien Raymond 7 년 전
부모
커밋
42e4f06fe9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)