mirror of
https://github.com/docker/cli.git
synced 2026-01-13 18:22:35 +03:00
Fix too short time.Sleep() in pkg/discovery/kv/kv_test.go
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp> Upstream-commit: 937851580c91a5129a0a2f236e315b8b090a91fd Component: engine
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user