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:
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
Block a user