From d11b9fbcce2245592b3f1ebce6766b48fa1422b7 Mon Sep 17 00:00:00 2001 From: zeripath Date: Mon, 3 May 2021 17:16:59 +0100 Subject: [PATCH] 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 --- modules/queue/queue_channel_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/queue/queue_channel_test.go b/modules/queue/queue_channel_test.go index 08a64c0ab86..bca81d50fda 100644 --- a/modules/queue/queue_channel_test.go +++ b/modules/queue/queue_channel_test.go @@ -68,9 +68,9 @@ func TestChannelQueue_Batch(t *testing.T) { WorkerPoolConfiguration: WorkerPoolConfiguration{ QueueLength: 20, BatchLength: 2, - BlockTimeout: 1 * time.Second, - BoostTimeout: 5 * time.Minute, - BoostWorkers: 5, + BlockTimeout: 0, + BoostTimeout: 0, + BoostWorkers: 0, MaxWorkers: 10, }, Workers: 1,