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

pull/6347/head
Delyan Angelov 2020-09-11 15:59:22 +03:00
parent ce62f997f3
commit d46c1f0f20
1 changed files with 1 additions and 0 deletions

View File

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