diff --git a/vlib/pool/connection_test.v b/vlib/pool/connection_test.v index 44e79dd5c2..41c54e037a 100644 --- a/vlib/pool/connection_test.v +++ b/vlib/pool/connection_test.v @@ -195,7 +195,7 @@ fn test_concurrent_access() { defer { p.close() } - mut wg := &sync.WaitGroup{} + mut wg := sync.new_waitgroup() for _ in 0 .. 20 { wg.add(1)