From 1624235bb3e2f928a993c086e7abc0a818828667 Mon Sep 17 00:00:00 2001 From: Yicheng Qin Date: Sat, 11 Jul 2015 21:40:04 -0700 Subject: [PATCH] pkg/testutil: extend wait schedule time to 10ms Waiting 3ms is not long enough for schedule to work well. The test suite may fail once per 200 times in travis due to this. Extend this to 10ms to ensure schedule could work. Now it could run 1000 times successfully in travis. --- pkg/testutil/testutil.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/testutil/testutil.go b/pkg/testutil/testutil.go index 2eac84eb2..49a25da00 100644 --- a/pkg/testutil/testutil.go +++ b/pkg/testutil/testutil.go @@ -22,7 +22,7 @@ import ( // TODO: improve this when we are able to know the schedule or status of target go-routine. func WaitSchedule() { - time.Sleep(3 * time.Millisecond) + time.Sleep(10 * time.Millisecond) } func MustNewURLs(t *testing.T, urls []string) []url.URL {