diff --git a/vlib/v/fmt/tests/go_stmt_expected.vv b/vlib/v/fmt/tests/go_stmt_expected.vv index 35c914f0de..5e26722ec9 100644 --- a/vlib/v/fmt/tests/go_stmt_expected.vv +++ b/vlib/v/fmt/tests/go_stmt_expected.vv @@ -7,8 +7,8 @@ fn my_thread_with_params(s string) { } fn my_fn_calling_threads() { - spawn my_thread() - spawn my_thread_with_params('yay') + go my_thread() + go my_thread_with_params('yay') - spawn my_thread_with_params('nono') + go my_thread_with_params('nono') } diff --git a/vlib/v/fmt/tests/shared_input.vv b/vlib/v/fmt/tests/shared_input.vv index 800a5fc67d..944be6e1fe 100644 --- a/vlib/v/fmt/tests/shared_input.vv +++ b/vlib/v/fmt/tests/shared_input.vv @@ -58,7 +58,7 @@ a: 5 a: read_threads } for _ in 0.. read_threads { - go x.f(shared z) + spawn x.f(shared z) } for i in 0..writes { lock x { // wait for ongoing reads to finish, don't start new ones