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:
parent
41bdd77545
commit
59dbea768c
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue