mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 03:33:56 +00:00
Merge pull request #18890 from wojtek-t/fix_etcd_watcher_in_go15
Fix test issue in Go 1.5
This commit is contained in:
commit
8c60f53cef
@ -227,8 +227,8 @@ func TestWatchEtcdError(t *testing.T) {
|
|||||||
}
|
}
|
||||||
server.Terminate(t)
|
server.Terminate(t)
|
||||||
|
|
||||||
got := <-watching.ResultChan()
|
got, ok := <-watching.ResultChan()
|
||||||
if got.Type != watch.Error {
|
if ok && got.Type != watch.Error {
|
||||||
t.Fatalf("Unexpected non-error")
|
t.Fatalf("Unexpected non-error")
|
||||||
}
|
}
|
||||||
watching.Stop()
|
watching.Stop()
|
||||||
|
Loading…
Reference in New Issue
Block a user