From 59dbea768c75a7ce07453010fcf6c392738771b8 Mon Sep 17 00:00:00 2001 From: Abiola Ibrahim Date: Wed, 9 Dec 2015 19:22:20 +0100 Subject: [PATCH] Fix race condition on AppVeyor. Increase timeout a bit. --- middleware/markdown/watcher_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/middleware/markdown/watcher_test.go b/middleware/markdown/watcher_test.go index d09d07c6..2f7ca4cb 100644 --- a/middleware/markdown/watcher_test.go +++ b/middleware/markdown/watcher_test.go @@ -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()