Browse Source

Merge pull request #3121 from yichengq/extend-schedule

pkg/testutil: extend wait schedule time to 10ms
Yicheng Qin 10 years ago
parent
commit
7a520bb80b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pkg/testutil/testutil.go

+ 1 - 1
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.
 // TODO: improve this when we are able to know the schedule or status of target go-routine.
 func WaitSchedule() {
 func WaitSchedule() {
-	time.Sleep(3 * time.Millisecond)
+	time.Sleep(10 * time.Millisecond)
 }
 }
 
 
 func MustNewURLs(t *testing.T, urls []string) []url.URL {
 func MustNewURLs(t *testing.T, urls []string) []url.URL {