Skip to content

Commit 3ac63cc

Browse files
committed
fmt: fix a shared test
1 parent f842273 commit 3ac63cc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

vlib/v/fmt/tests/go_stmt_expected.vv

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ fn my_thread_with_params(s string) {
77
}
88

99
fn my_fn_calling_threads() {
10-
spawn my_thread()
11-
spawn my_thread_with_params('yay')
10+
go my_thread()
11+
go my_thread_with_params('yay')
1212

13-
spawn my_thread_with_params('nono')
13+
go my_thread_with_params('nono')
1414
}

vlib/v/fmt/tests/shared_input.vv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ a: 5
5858
a: read_threads
5959
}
6060
for _ in 0.. read_threads {
61-
go x.f(shared z)
61+
spawn x.f(shared z)
6262
}
6363
for i in 0..writes {
6464
lock x { // wait for ongoing reads to finish, don't start new ones

0 commit comments

Comments
 (0)