From d83091ea5202759e9aadb157f4382870d01eb1ef Mon Sep 17 00:00:00 2001 From: Brendan Burns Date: Tue, 26 Aug 2014 17:09:38 -0700 Subject: [PATCH] Fix a flake by extending the time out, so we don't race a go routine. Empirically this eliminates a flake. --- pkg/tools/etcd_tools_watch_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/tools/etcd_tools_watch_test.go b/pkg/tools/etcd_tools_watch_test.go index e0f04925bcd..b5639445bbd 100644 --- a/pkg/tools/etcd_tools_watch_test.go +++ b/pkg/tools/etcd_tools_watch_test.go @@ -425,7 +425,7 @@ func TestWatchFromOtherError(t *testing.T) { if ok { t.Fatalf("expected result channel to be closed") } - case <-time.After(1 * time.Millisecond): + case <-time.After(1 * time.Second): t.Fatalf("watch should have closed channel: %#v", watching) }