Skip to content

Commit 1e8496b

Browse files
committed
Bump up delta in queue test
1 parent 2399f9a commit 1e8496b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

queue/queue_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,9 @@ func TestPoll(t *testing.T) {
116116

117117
before := time.Now()
118118
_, err = q.Poll(1, 5*time.Millisecond)
119-
assert.InDelta(t, 5, time.Since(before).Seconds()*1000, 2)
119+
// This delta is normally 1-3 ms but running tests in CI with -race causes
120+
// this to run much slower. For now, just bump up the threshold.
121+
assert.InDelta(t, 5, time.Since(before).Seconds()*1000, 10)
120122
assert.Equal(t, ErrTimeout, err)
121123
}
122124

0 commit comments

Comments
 (0)