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:
Kubernetes Submit Queue 2018-03-22 06:20:32 -07:00 committed by GitHub
commit f4e71f1c74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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