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:
Brian Goff
2019-06-12 12:55:33 -07:00
committed by Pires
parent c06a778abc
commit c55bc21873

View File

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