Skip to content

Commit fb8f2e9

Browse files
lpincadanielleadams
authored andcommitted
test: deflake test-trace-atomics-wait
Add possible outcome to the `expectedTimelines` array. Fixes: #41010 PR-URL: #41018 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Mohammed Keyvanzadeh <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent fe3e09b commit fb8f2e9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/parallel/test-trace-atomics-wait.js

+6
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ values mismatched
9090
[Thread 1] Atomics.wait(<address> + 4, -1, inf) started
9191
[Thread 1] Atomics.wait(<address> + 4, -1, inf) did not wait because the \
9292
values mismatched`,
93+
`${begin}
94+
[Thread 1] Atomics.wait(<address> + 4, -1, inf) started
95+
[Thread 0] Atomics.wait(<address> + 4, 0, inf) started
96+
[Thread 0] Atomics.wait(<address> + 4, 0, inf) did not wait because the \
97+
values mismatched
98+
[Thread 1] Atomics.wait(<address> + 4, -1, inf) was woken up by another thread`,
9399
];
94100

95101
assert(expectedTimelines.includes(actualTimeline));

0 commit comments

Comments
 (0)