mirror of https://github.com/k3s-io/k3s
Fix test issue in Go 1.5
parent
8b3c5f97ff
commit
96b5ca0cc5
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue