Explorar o código

Merge pull request #3059 from yichengq/fix-wait-stress-test

pkg/wait: extend timeout to check closed channel
Yicheng Qin %!s(int64=10) %!d(string=hai) anos
pai
achega
3d4642c2c4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      pkg/wait/wait_time_test.go

+ 1 - 1
pkg/wait/wait_time_test.go

@@ -61,7 +61,7 @@ func TestWaitTestStress(t *testing.T) {
 	for _, ch := range chs {
 		select {
 		case <-ch:
-		case <-time.After(10 * time.Millisecond):
+		case <-time.After(time.Second):
 			t.Fatalf("cannot receive from ch as expected")
 		}
 	}