mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 04:06:03 +00:00
Merge pull request #61494 from rmmh/watch-flake
Automatic merge from submit-queue (batch tested with PRs 61453, 61393, 61379, 61373, 61494). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Increase API watch test timeout to avoid flakes. **What this PR does / why we need it**: This test has been [flaking repeatedly](https://storage.googleapis.com/k8s-gubernator/triage/index.html?pr=1#82a58388c2f346567b72), probably because 10 seconds it too short of a deadline. One minute should be more generous. **Release note**: ```release-note NONE ```
This commit is contained in:
commit
f4e71f1c74
@ -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) {
|
||||
stopTimer := time.NewTimer(10 * time.Second)
|
||||
stopTimer := time.NewTimer(1 * time.Minute)
|
||||
for {
|
||||
select {
|
||||
case actual := <-w.ResultChan():
|
||||
|
Loading…
Reference in New Issue
Block a user