mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
integration: change timeouts for TestWatchWithProgressNotify
a) 2 * progress interval was passing with dropped notifies b) waitResponse was waiting so long that it expected a dropped notify
This commit is contained in:
parent
299ebc6137
commit
8c8742f43c
@ -487,7 +487,7 @@ func testWatchWithProgressNotify(t *testing.T, watchOnPut bool) {
|
|||||||
} else if len(resp.Events) != 0 { // wait for notification otherwise
|
} else if len(resp.Events) != 0 { // wait for notification otherwise
|
||||||
t.Fatalf("expected no events, but got %+v", resp.Events)
|
t.Fatalf("expected no events, but got %+v", resp.Events)
|
||||||
}
|
}
|
||||||
case <-time.After(2 * pi):
|
case <-time.After(time.Duration(1.5 * float64(pi))):
|
||||||
t.Fatalf("watch response expected in %v, but timed out", pi)
|
t.Fatalf("watch response expected in %v, but timed out", pi)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -971,7 +971,7 @@ func TestWatchWithProgressNotify(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// no more notification
|
// no more notification
|
||||||
rok, resp := waitResponse(wStream, testInterval+time.Second)
|
rok, resp := waitResponse(wStream, time.Second)
|
||||||
if !rok {
|
if !rok {
|
||||||
t.Errorf("unexpected pb.WatchResponse is received %+v", resp)
|
t.Errorf("unexpected pb.WatchResponse is received %+v", resp)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user