Skip to content

Commit d11b9fb

Browse files
authored
Prevent race in TestChannelQueue_Batch (#15703)
There is a potential race in TestChannelQueue_Batch due to boost workers starting up This PR simply removes the boosts from this test. Signed-off-by: Andrew Thornton <[email protected]>
1 parent 5c5cfd6 commit d11b9fb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/queue/queue_channel_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ func TestChannelQueue_Batch(t *testing.T) {
6868
WorkerPoolConfiguration: WorkerPoolConfiguration{
6969
QueueLength: 20,
7070
BatchLength: 2,
71-
BlockTimeout: 1 * time.Second,
72-
BoostTimeout: 5 * time.Minute,
73-
BoostWorkers: 5,
71+
BlockTimeout: 0,
72+
BoostTimeout: 0,
73+
BoostWorkers: 0,
7474
MaxWorkers: 10,
7575
},
7676
Workers: 1,

0 commit comments

Comments
 (0)