Fix test issue in Go 1.5

pull/6/head
Wojciech Tyczynski 2015-12-18 11:27:05 +01:00
parent 8b3c5f97ff
commit 96b5ca0cc5
1 changed files with 2 additions and 2 deletions

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