mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
test: deflake test-trace-atomics-wait
Add possible outcome to the `expectedTimelines` array. Fixes: https://github.com/nodejs/node/issues/41010 PR-URL: https://github.com/nodejs/node/pull/41018 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
@@ -90,6 +90,12 @@ values mismatched
|
||||
[Thread 1] Atomics.wait(<address> + 4, -1, inf) started
|
||||
[Thread 1] Atomics.wait(<address> + 4, -1, inf) did not wait because the \
|
||||
values mismatched`,
|
||||
`${begin}
|
||||
[Thread 1] Atomics.wait(<address> + 4, -1, inf) started
|
||||
[Thread 0] Atomics.wait(<address> + 4, 0, inf) started
|
||||
[Thread 0] Atomics.wait(<address> + 4, 0, inf) did not wait because the \
|
||||
values mismatched
|
||||
[Thread 1] Atomics.wait(<address> + 4, -1, inf) was woken up by another thread`,
|
||||
];
|
||||
|
||||
assert(expectedTimelines.includes(actualTimeline));
|
||||
|
||||
Reference in New Issue
Block a user