From c0d7c58b1b4fb02fd726f040333b19317543e7a2 Mon Sep 17 00:00:00 2001 From: Henrik Holst <6200749+hholst80@users.noreply.github.com> Date: Tue, 2 Jan 2024 09:10:36 +0100 Subject: [PATCH] tests: fix syntax error in go_array_wait_test.v (#20342) --- vlib/v/tests/go_array_wait_test.v | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vlib/v/tests/go_array_wait_test.v b/vlib/v/tests/go_array_wait_test.v index 62dec4544f..26d8aab4e6 100644 --- a/vlib/v/tests/go_array_wait_test.v +++ b/vlib/v/tests/go_array_wait_test.v @@ -41,9 +41,8 @@ fn test_array_thread_void_wait() { fn test_void_thread_decl() { shared a := [2, 3, 9] - mut t1 := thread(0) + mut t1 := spawn g(shared a, 0) mut tarr := []thread{len: 2} - t1 = spawn g(shared a, 0) tarr[0] = spawn g(shared a, 1) tarr[1] = spawn g(shared a, 2) t1.wait()