Skip to content

Commit

Permalink
test: fix invalid regular expressions in case test-trace-exit
Browse files Browse the repository at this point in the history
PR-URL: #33769
Fixes: #30516
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
legendecas committed Jun 9, 2020
1 parent 921f755 commit 5590ee0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-trace-exit.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ switch (true) {
stderr.match(/WARNING: Exited the environment with code 0/g);
if (warnings === 0) {
assert.strictEqual(actualWarnings, null);
return;
continue;
}
assert.strictEqual(actualWarnings.length, warnings);

if (variant.startsWith('worker')) {
const workerIds = stderr.match(/\(node:\d+, thread:\d+)/g);
const workerIds = stderr.match(/\(node:\d+, thread:\d+\)/g);
assert.strictEqual(workerIds.length, warnings);
}
}
Expand Down

0 comments on commit 5590ee0

Please sign in to comment.