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() {
|
||||
mut wg := sync.new_waitgroup()
|
||||
wg.add(1)
|
||||
go fn (mut wg sync.WaitGroup) {
|
||||
wg.done()
|
||||
}(mut wg)
|
||||
|
|
Loading…
Reference in New Issue