mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
Increase API watch test timeout to avoid flakes.
This commit is contained in:
parent
e40ffd7197
commit
f7da809209
@ -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():
|
||||||
|
Loading…
Reference in New Issue
Block a user