Skip to content

Commit c50bd2f

Browse files
legendecascodebytere
authored andcommitted
test: fix invalid regular expressions in case test-trace-exit
PR-URL: #33769 Fixes: #30516 Reviewed-By: Denys Otrishko <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
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)