Increase timeouts on test watch (#661)
This test is flakey on CI, likely because the timings are too tight, so give a bit more time for things to complete.
This commit is contained in:
@@ -71,14 +71,14 @@ func testNodeRun(t *testing.T, enableLease bool) {
|
||||
expectAtLeast = iters / 5
|
||||
)
|
||||
|
||||
timeout := time.After(10 * time.Second)
|
||||
timeout := time.After(30 * time.Second)
|
||||
for i := 0; i < iters; i++ {
|
||||
var l *coord.Lease
|
||||
|
||||
select {
|
||||
case <-timeout:
|
||||
t.Fatal("timed out waiting for expected events")
|
||||
case <-time.After(4 * interval):
|
||||
case <-time.After(time.Second):
|
||||
t.Errorf("timeout waiting for event")
|
||||
continue
|
||||
case err := <-chErr:
|
||||
|
||||
Reference in New Issue
Block a user