From 3450227ba28aeee73e35bf5cb6c95bcba9a597cf Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Fri, 3 Dec 2021 18:07:19 +0100 Subject: [PATCH] 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 Reviewed-By: Mohammed Keyvanzadeh Reviewed-By: James M Snell --- test/parallel/test-trace-atomics-wait.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/parallel/test-trace-atomics-wait.js b/test/parallel/test-trace-atomics-wait.js index 03b76791586d98..232c06be3032e6 100644 --- a/test/parallel/test-trace-atomics-wait.js +++ b/test/parallel/test-trace-atomics-wait.js @@ -90,6 +90,12 @@ values mismatched [Thread 1] Atomics.wait(
+ 4, -1, inf) started [Thread 1] Atomics.wait(
+ 4, -1, inf) did not wait because the \ values mismatched`, + `${begin} +[Thread 1] Atomics.wait(
+ 4, -1, inf) started +[Thread 0] Atomics.wait(
+ 4, 0, inf) started +[Thread 0] Atomics.wait(
+ 4, 0, inf) did not wait because the \ +values mismatched +[Thread 1] Atomics.wait(
+ 4, -1, inf) was woken up by another thread`, ]; assert(expectedTimelines.includes(actualTimeline));