tests: fix syntax error in go_array_wait_test.v (#20342)

This commit is contained in:
Henrik Holst 2024-01-02 09:10:36 +01:00 committed by GitHub
parent 8cef744b0d
commit c0d7c58b1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,9 +41,8 @@ fn test_array_thread_void_wait() {
fn test_void_thread_decl() { fn test_void_thread_decl() {
shared a := [2, 3, 9] shared a := [2, 3, 9]
mut t1 := thread(0) mut t1 := spawn g(shared a, 0)
mut tarr := []thread{len: 2} mut tarr := []thread{len: 2}
t1 = spawn g(shared a, 0)
tarr[0] = spawn g(shared a, 1) tarr[0] = spawn g(shared a, 1)
tarr[1] = spawn g(shared a, 2) tarr[1] = spawn g(shared a, 2)
t1.wait() t1.wait()