Skip to content

Commit

Permalink
change timeout in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
z4yx committed Nov 7, 2019
1 parent b4fe4db commit a065a11
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions worker/worker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a065a11

Please sign in to comment.