Commit 8c60f53c authored by Wojciech Tyczynski's avatar Wojciech Tyczynski

Merge pull request #18890 from wojtek-t/fix_etcd_watcher_in_go15

Fix test issue in Go 1.5
parents 8b3c5f97 96b5ca0c
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment