mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	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>
This commit is contained in:
		@@ -68,9 +68,9 @@ func TestChannelQueue_Batch(t *testing.T) {
 | 
				
			|||||||
			WorkerPoolConfiguration: WorkerPoolConfiguration{
 | 
								WorkerPoolConfiguration: WorkerPoolConfiguration{
 | 
				
			||||||
				QueueLength:  20,
 | 
									QueueLength:  20,
 | 
				
			||||||
				BatchLength:  2,
 | 
									BatchLength:  2,
 | 
				
			||||||
				BlockTimeout: 1 * time.Second,
 | 
									BlockTimeout: 0,
 | 
				
			||||||
				BoostTimeout: 5 * time.Minute,
 | 
									BoostTimeout: 0,
 | 
				
			||||||
				BoostWorkers: 5,
 | 
									BoostWorkers: 0,
 | 
				
			||||||
				MaxWorkers:   10,
 | 
									MaxWorkers:   10,
 | 
				
			||||||
			},
 | 
								},
 | 
				
			||||||
			Workers: 1,
 | 
								Workers: 1,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user