Increase API watch test timeout to avoid flakes.
This commit is contained in:
@@ -191,7 +191,7 @@ func expectNoEvent(w watch.Interface, eventType watch.EventType, object runtime.
|
|||||||
}
|
}
|
||||||
|
|
||||||
func waitForEvent(w watch.Interface, expectType watch.EventType, expectObject runtime.Object) (watch.Event, bool) {
|
func waitForEvent(w watch.Interface, expectType watch.EventType, expectObject runtime.Object) (watch.Event, bool) {
|
||||||
stopTimer := time.NewTimer(10 * time.Second)
|
stopTimer := time.NewTimer(1 * time.Minute)
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
case actual := <-w.ResultChan():
|
case actual := <-w.ResultChan():
|
||||||
|
Reference in New Issue
Block a user