1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

tests: fix sporadic waitgroup failure on slow windows VMs in anon_fn_test.v

This commit is contained in:
Delyan Angelov 2020-09-11 15:59:22 +03:00
parent ce62f997f3
commit d46c1f0f20

View File

@ -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)