From 3ac63cce869c5a0d7ee093864484344ad44474e1 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sun, 28 May 2023 18:23:07 +0300 Subject: [PATCH] fmt: fix a `shared` test --- vlib/v/fmt/tests/go_stmt_expected.vv | 6 +++--- vlib/v/fmt/tests/shared_input.vv | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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