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