From 937851580c91a5129a0a2f236e315b8b090a91fd Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Fri, 27 May 2016 04:08:55 +0000 Subject: [PATCH] Fix too short time.Sleep() in pkg/discovery/kv/kv_test.go Signed-off-by: Akihiro Suda --- pkg/discovery/kv/kv_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/discovery/kv/kv_test.go b/pkg/discovery/kv/kv_test.go index 4fe5239d3c..dab3939dd0 100644 --- a/pkg/discovery/kv/kv_test.go +++ b/pkg/discovery/kv/kv_test.go @@ -251,7 +251,7 @@ func (ds *DiscoverySuite) TestWatch(c *check.C) { close(mockCh) // Give it enough time to call WatchTree. - time.Sleep(3) + time.Sleep(3 * time.Second) // Stop and make sure it closes all channels. close(stopCh)