From 96b5ca0cc5ea051815a4bfbf5a37d15a9f4164d3 Mon Sep 17 00:00:00 2001 From: Wojciech Tyczynski Date: Fri, 18 Dec 2015 11:27:05 +0100 Subject: [PATCH] Fix test issue in Go 1.5 --- pkg/storage/etcd/etcd_watcher_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/storage/etcd/etcd_watcher_test.go b/pkg/storage/etcd/etcd_watcher_test.go index 49de7643ed9..65654bad60f 100644 --- a/pkg/storage/etcd/etcd_watcher_test.go +++ b/pkg/storage/etcd/etcd_watcher_test.go @@ -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()