Skip to content

Commit a065a11

Browse files
committed
change timeout in tests
1 parent b4fe4db commit a065a11

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

worker/worker_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ func TestWorker(t *testing.T) {
133133
} else if sch, ok := data.(MirrorSchedules); ok {
134134
So(len(sch.Schedules), ShouldEqual, 0)
135135
}
136-
case <-time.After(1 * time.Second):
136+
case <-time.After(2 * time.Second):
137137
So(registered, ShouldBeTrue)
138138
return
139139
}
@@ -178,7 +178,7 @@ func TestWorker(t *testing.T) {
178178
So(status.Status, ShouldNotEqual, Failed)
179179
lastStatus = status.Status
180180
}
181-
case <-time.After(1 * time.Second):
181+
case <-time.After(2 * time.Second):
182182
So(url, ShouldNotEqual, "")
183183
So(jobRunning, ShouldBeFalse)
184184
So(lastStatus, ShouldEqual, Success)
@@ -239,7 +239,7 @@ func TestWorker(t *testing.T) {
239239
}
240240
lastStatus[status.Name] = status.Status
241241
}
242-
case <-time.After(1 * time.Second):
242+
case <-time.After(2 * time.Second):
243243
So(len(lastStatus), ShouldEqual, 3)
244244
So(len(nextSch), ShouldEqual, 3)
245245
return

0 commit comments

Comments
 (0)