Commit 96b5ca0c authored by Wojciech Tyczynski's avatar Wojciech Tyczynski

Fix test issue in Go 1.5

parent 8b3c5f97
......@@ -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