From 4a12dc3f7d8a0ce551dcecb86063092ddd32bedc Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Sat, 16 May 2020 11:42:59 +0200 Subject: [PATCH] test: fix flaky test-trace-atomics-wait This adds a possible ordering of the trace events that was missing from the list previously. Fixes: https://github.com/nodejs/node/issues/33427 --- test/parallel/test-trace-atomics-wait.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/parallel/test-trace-atomics-wait.js b/test/parallel/test-trace-atomics-wait.js index 4681b77b597b87..d925ffbe6c2cd4 100644 --- a/test/parallel/test-trace-atomics-wait.js +++ b/test/parallel/test-trace-atomics-wait.js @@ -59,6 +59,11 @@ const expectedTimelines = [ [Thread 0] Atomics.wait(
+ 4, 0, inf) started [Thread 0] Atomics.wait(
+ 4, 0, inf) was woken up by another thread [Thread 1] Atomics.wait(
+ 4, -1, inf) started +[Thread 1] Atomics.wait(
+ 4, -1, inf) was woken up by another thread`, + `${begin} +[Thread 0] Atomics.wait(
+ 4, 0, inf) started +[Thread 0] Atomics.wait(
+ 4, 0, inf) was woken up by another thread +[Thread 1] Atomics.wait(
+ 4, -1, inf) started [Thread 1] Atomics.wait(
+ 4, -1, inf) did not wait because the \ values mismatched`, `${begin}