Commit 59dbea76 authored by Abiola Ibrahim's avatar Abiola Ibrahim

Fix race condition on AppVeyor. Increase timeout a bit.

parent 41bdd775
......@@ -18,7 +18,7 @@ func TestWatcher(t *testing.T) {
out += fmt.Sprint(i)
})
// wait little more because of concurrency
time.Sleep(interval * 9)
time.Sleep(interval * 12)
stopChan <- struct{}{}
if !strings.HasPrefix(out, expected) {
t.Fatalf("Expected to have prefix %v, found %v", expected, out)
......@@ -32,7 +32,7 @@ func TestWatcher(t *testing.T) {
out += fmt.Sprint(i)
mu.Unlock()
})
time.Sleep(interval * 10)
time.Sleep(interval * 15)
mu.Lock()
res := out
mu.Unlock()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment