From bf00e9bdb864bf37cf5021c01ba221ac3248f485 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sat, 5 Nov 2022 11:30:49 +0200 Subject: [PATCH] tests: fix vlib/v/fmt/tests/*_expected.vv files too --- vlib/v/fmt/tests/go_stmt_expected.vv | 6 +++--- vlib/v/fmt/tests/shared_expected.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 5e26722ec9..35c914f0de 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() { - go my_thread() - go my_thread_with_params('yay') + spawn my_thread() + spawn my_thread_with_params('yay') - go my_thread_with_params('nono') + spawn my_thread_with_params('nono') } diff --git a/vlib/v/fmt/tests/shared_expected.vv b/vlib/v/fmt/tests/shared_expected.vv index 13f76126a6..23332f078b 100644 --- a/vlib/v/fmt/tests/shared_expected.vv +++ b/vlib/v/fmt/tests/shared_expected.vv @@ -60,7 +60,7 @@ fn test_shared_lock() { 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