mirror of
https://github.com/vlang/v.git
synced 2025-09-10 16:00:31 -04:00
pool: fix initialization of waitgroup in test_concurrent_access() (#24753)
This commit is contained in:
parent
125c899d62
commit
e2835bb9da
@ -195,7 +195,7 @@ fn test_concurrent_access() {
|
|||||||
defer {
|
defer {
|
||||||
p.close()
|
p.close()
|
||||||
}
|
}
|
||||||
mut wg := &sync.WaitGroup{}
|
mut wg := sync.new_waitgroup()
|
||||||
|
|
||||||
for _ in 0 .. 20 {
|
for _ in 0 .. 20 {
|
||||||
wg.add(1)
|
wg.add(1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user