tests: fix sporadic waitgroup failure on slow windows VMs in anon_fn_test.v
							parent
							
								
									ce62f997f3
								
							
						
					
					
						commit
						d46c1f0f20
					
				|  | @ -2,6 +2,7 @@ import sync | ||||||
| 
 | 
 | ||||||
| fn test_go_anon_fn() { | fn test_go_anon_fn() { | ||||||
| 	mut wg := sync.new_waitgroup() | 	mut wg := sync.new_waitgroup() | ||||||
|  | 	wg.add(1)     | ||||||
| 	go fn (mut wg sync.WaitGroup) { | 	go fn (mut wg sync.WaitGroup) { | ||||||
| 		wg.done() | 		wg.done() | ||||||
| 	}(mut wg) | 	}(mut wg) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue