Skip to content

Commit

Permalink
tests: fix syntax error in go_array_wait_test.v (#20342)
Browse files Browse the repository at this point in the history
  • Loading branch information
hholst80 committed Jan 2, 2024
1 parent 8cef744 commit c0d7c58
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vlib/v/tests/go_array_wait_test.v
Expand Up @@ -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()
Expand Down

0 comments on commit c0d7c58

Please sign in to comment.