0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -05:00

Fix race condition on AppVeyor. Increase timeout a bit.

This commit is contained in:
Abiola Ibrahim 2015-12-09 19:22:20 +01:00
parent 41bdd77545
commit 59dbea768c

View file

@ -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()