mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-05-28 04:04:39 -04:00
Fix test issue in Go 1.5
This commit is contained in:
parent
8b3c5f97ff
commit
96b5ca0cc5
1 changed files with 2 additions and 2 deletions
|
|
@ -227,8 +227,8 @@ func TestWatchEtcdError(t *testing.T) {
|
|||
}
|
||||
server.Terminate(t)
|
||||
|
||||
got := <-watching.ResultChan()
|
||||
if got.Type != watch.Error {
|
||||
got, ok := <-watching.ResultChan()
|
||||
if ok && got.Type != watch.Error {
|
||||
t.Fatalf("Unexpected non-error")
|
||||
}
|
||||
watching.Stop()
|
||||
|
|
|
|||
Loading…
Reference in a new issue