Răsfoiți Sursa

change timeout in tests

z4yx 5 ani în urmă
părinte
comite
a065a11b38
1 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  1. 3 3
      worker/worker_test.go

+ 3 - 3
worker/worker_test.go

@@ -133,7 +133,7 @@ func TestWorker(t *testing.T) {
 						} else if sch, ok := data.(MirrorSchedules); ok {
 							So(len(sch.Schedules), ShouldEqual, 0)
 						}
-					case <-time.After(1 * time.Second):
+					case <-time.After(2 * time.Second):
 						So(registered, ShouldBeTrue)
 						return
 					}
@@ -178,7 +178,7 @@ func TestWorker(t *testing.T) {
 							So(status.Status, ShouldNotEqual, Failed)
 							lastStatus = status.Status
 						}
-					case <-time.After(1 * time.Second):
+					case <-time.After(2 * time.Second):
 						So(url, ShouldNotEqual, "")
 						So(jobRunning, ShouldBeFalse)
 						So(lastStatus, ShouldEqual, Success)
@@ -239,7 +239,7 @@ func TestWorker(t *testing.T) {
 							}
 							lastStatus[status.Name] = status.Status
 						}
-					case <-time.After(1 * time.Second):
+					case <-time.After(2 * time.Second):
 						So(len(lastStatus), ShouldEqual, 3)
 						So(len(nextSch), ShouldEqual, 3)
 						return