diff options
author | zeripath <art27@cantab.net> | 2021-05-03 17:16:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-03 17:16:59 +0100 |
commit | d11b9fbcce2245592b3f1ebce6766b48fa1422b7 (patch) | |
tree | 0aac0f603972f1790dfa1b410cf129898bfa741d /modules/queue/queue_channel_test.go | |
parent | 5c5cfd6b18e48520af8799f602ef75746b1f11e1 (diff) | |
download | gitea-d11b9fbcce2245592b3f1ebce6766b48fa1422b7.tar.gz gitea-d11b9fbcce2245592b3f1ebce6766b48fa1422b7.zip |
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 <art27@cantab.net>
Diffstat (limited to 'modules/queue/queue_channel_test.go')
-rw-r--r-- | modules/queue/queue_channel_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/queue/queue_channel_test.go b/modules/queue/queue_channel_test.go index 08a64c0ab8..bca81d50fd 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, |