Skip to content

Commit 591239d

Browse files
committed
Bump up batcher test delta
1 parent 9d4fb20 commit 591239d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

batcher/batcher_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,10 @@ func TestMaxTime(t *testing.T) {
6767

6868
before := time.Now()
6969
batch, err := b.Get()
70-
assert.InDelta(200, time.Since(before).Seconds()*1000, 5)
70+
71+
// This delta is normally 1-3 ms but running tests in CI with -race causes
72+
// this to run much slower. For now, just bump up the threshold.
73+
assert.InDelta(200, time.Since(before).Seconds()*1000, 50)
7174
assert.True(len(batch) > 0)
7275
assert.Nil(err)
7376
}

0 commit comments

Comments
 (0)