From b6e3616911f0ea6eb132c30f5ad41fc4c68c259b Mon Sep 17 00:00:00 2001 From: legendecas Date: Sat, 6 Jun 2020 15:06:21 +0800 Subject: [PATCH] test: fix invalid regular expressions in case test-trace-exit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/33769 Fixes: https://github.com/nodejs/node/issues/30516 Reviewed-By: Denys Otrishko Reviewed-By: Michaƫl Zasso Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca --- test/parallel/test-trace-exit.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-trace-exit.js b/test/parallel/test-trace-exit.js index 237512ac273db1..7a4c222c40f74c 100644 --- a/test/parallel/test-trace-exit.js +++ b/test/parallel/test-trace-exit.js @@ -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); } }