Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c50bd2f

Browse files
legendecascodebytere
authored andcommittedJul 10, 2020
test: fix invalid regular expressions in case test-trace-exit
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>
1 parent 103a9af commit c50bd2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎test/parallel/test-trace-exit.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ switch (true) {
4747
stderr.match(/WARNING: Exited the environment with code 0/g);
4848
if (warnings === 0) {
4949
assert.strictEqual(actualWarnings, null);
50-
return;
50+
continue;
5151
}
5252
assert.strictEqual(actualWarnings.length, warnings);
5353

5454
if (variant.startsWith('worker')) {
55-
const workerIds = stderr.match(/\(node:\d+, thread:\d+)/g);
55+
const workerIds = stderr.match(/\(node:\d+, thread:\d+\)/g);
5656
assert.strictEqual(workerIds.length, warnings);
5757
}
5858
}

0 commit comments

Comments
 (0)
Please sign in to comment.