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:
Luigi Pinca
2021-12-03 18:07:19 +01:00
committed by GitHub
parent 14d9c38c09
commit fd66ae881b

View File

@@ -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));