mirror of
				https://github.com/taigrr/bitcask
				synced 2025-01-18 04:03:17 -08:00 
			
		
		
		
	Increase no. of goroutines to catch more race conditions in tests
This commit is contained in:
		
							parent
							
								
									e9c858d43f
								
							
						
					
					
						commit
						cb00b11dd7
					
				| @ -287,10 +287,9 @@ func TestConcurrent(t *testing.T) { | ||||
| 			wg := &sync.WaitGroup{} | ||||
| 
 | ||||
| 			go f(wg, 2) | ||||
| 			wg.Add(1) | ||||
| 
 | ||||
| 			go f(wg, 3) | ||||
| 			wg.Add(1) | ||||
| 			go f(wg, 5) | ||||
| 			wg.Add(3) | ||||
| 
 | ||||
| 			wg.Wait() | ||||
| 		}) | ||||
| @ -310,10 +309,9 @@ func TestConcurrent(t *testing.T) { | ||||
| 			wg := &sync.WaitGroup{} | ||||
| 
 | ||||
| 			go f(wg, 100) | ||||
| 			wg.Add(1) | ||||
| 
 | ||||
| 			go f(wg, 100) | ||||
| 			wg.Add(1) | ||||
| 			go f(wg, 100) | ||||
| 			wg.Add(3) | ||||
| 
 | ||||
| 			wg.Wait() | ||||
| 		}) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user