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 Jun 18, 2020
1 parent e58f14f commit b6e3616
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-trace-exit.js
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 b6e3616

Please sign in to comment.