mirror of https://github.com/docker/docs.git
Merge pull request #23041 from AkihiroSuda/fixPkgDiscoveryKvTestTooShortSleep
Fix too short time.Sleep() in pkg/discovery/kv/kv_test.go
This commit is contained in:
commit
9369457603
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue