mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 18:54:06 +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)
|
||||
|
||||
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 New Issue
Block a user