From ea71a2ae1b97aa5e6b70da02ec113ace75cde480 Mon Sep 17 00:00:00 2001 From: theanarkh Date: Fri, 24 Feb 2023 18:11:16 +0800 Subject: [PATCH] test: fix test-v8-collect-gc-profile-in-worker.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/46735 Reviewed-By: Luigi Pinca Reviewed-By: James M Snell Reviewed-By: Colin Ihrig Reviewed-By: Tobias Nießen --- test/parallel/test-v8-collect-gc-profile-in-worker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-v8-collect-gc-profile-in-worker.js b/test/parallel/test-v8-collect-gc-profile-in-worker.js index 49762c50fb1c73..11601de31ed8a5 100644 --- a/test/parallel/test-v8-collect-gc-profile-in-worker.js +++ b/test/parallel/test-v8-collect-gc-profile-in-worker.js @@ -4,7 +4,7 @@ require('../common'); const { Worker } = require('worker_threads'); const { testGCProfiler } = require('../common/v8'); -if (process.env.isWorker) { +if (!process.env.isWorker) { process.env.isWorker = 1; new Worker(__filename); } else {