Skip to content

Commit 47396a4

Browse files
addaleaxcodebytere
authored andcommitted
test: fix flaky test-trace-atomics-wait
This adds a possible ordering of the trace events that was missing from the list previously. Fixes: #33427 PR-URL: #33428 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 164461e commit 47396a4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

+5
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ const expectedTimelines = [
5959
[Thread 0] Atomics.wait(<address> + 4, 0, inf) started
6060
[Thread 0] Atomics.wait(<address> + 4, 0, inf) was woken up by another thread
6161
[Thread 1] Atomics.wait(<address> + 4, -1, inf) started
62+
[Thread 1] Atomics.wait(<address> + 4, -1, inf) was woken up by another thread`,
63+
`${begin}
64+
[Thread 0] Atomics.wait(<address> + 4, 0, inf) started
65+
[Thread 0] Atomics.wait(<address> + 4, 0, inf) was woken up by another thread
66+
[Thread 1] Atomics.wait(<address> + 4, -1, inf) started
6267
[Thread 1] Atomics.wait(<address> + 4, -1, inf) did not wait because the \
6368
values mismatched`,
6469
`${begin}

0 commit comments

Comments
 (0)