From d46c1f0f20e287a31f4c2abff388536e0c382b3d Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Fri, 11 Sep 2020 15:59:22 +0300 Subject: [PATCH] tests: fix sporadic waitgroup failure on slow windows VMs in anon_fn_test.v --- vlib/v/tests/anon_fn_test.v | 1 + 1 file changed, 1 insertion(+) diff --git a/vlib/v/tests/anon_fn_test.v b/vlib/v/tests/anon_fn_test.v index 0773e4cccf..f702464f9a 100644 --- a/vlib/v/tests/anon_fn_test.v +++ b/vlib/v/tests/anon_fn_test.v @@ -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)