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 authored and codebytere committed Jul 10, 2020
1 parent 103a9af commit c50bd2f
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 c50bd2f

Please sign in to comment.