Merge pull request #18890 from wojtek-t/fix_etcd_watcher_in_go15

Fix test issue in Go 1.5
This commit is contained in:
Wojciech Tyczynski 2015-12-18 15:31:24 +01:00
commit 8c60f53cef

View File

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