|
@@ -251,7 +251,7 @@ func (ds *DiscoverySuite) TestWatch(c *check.C) {
|
|
|
|
|
|
close(mockCh)
|
|
close(mockCh)
|
|
// Give it enough time to call WatchTree.
|
|
// Give it enough time to call WatchTree.
|
|
- time.Sleep(3)
|
|
|
|
|
|
+ time.Sleep(3 * time.Second)
|
|
|
|
|
|
// Stop and make sure it closes all channels.
|
|
// Stop and make sure it closes all channels.
|
|
close(stopCh)
|
|
close(stopCh)
|