Skip to content

Commit 46170de

Browse files
committed
ci: allow time deviation to 30ms.
1 parent 3dd4c3f commit 46170de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

parallel_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func TestParallelWithoutConcurrencyLimit(t *testing.T) {
3737
dur := time.Since(start)
3838
a.NilNow(err)
3939
a.EqualNow(index, -1)
40-
a.TrueNow(dur-100*time.Millisecond < 5*time.Millisecond) // allow 5ms deviation
40+
a.TrueNow(dur-100*time.Millisecond < 30*time.Millisecond) // allow 30ms deviation
4141
}
4242

4343
func TestParallelWithConcurrencyLimit(t *testing.T) {
@@ -56,7 +56,7 @@ func TestParallelWithConcurrencyLimit(t *testing.T) {
5656
dur := time.Since(start)
5757
a.NilNow(err)
5858
a.EqualNow(index, -1)
59-
a.TrueNow(dur-300*time.Millisecond < 10*time.Millisecond) // allow 10ms deviation
59+
a.TrueNow(dur-300*time.Millisecond < 30*time.Millisecond) // allow 30ms deviation
6060
}
6161

6262
func TestParallelWithFailedTask(t *testing.T) {

0 commit comments

Comments
 (0)