mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-13 21:25:09 +00:00
Fix test issue in Go 1.5
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user