From d3d115d6946d15078ee506ff66837f3afde938c1 Mon Sep 17 00:00:00 2001 From: theanarkh Date: Mon, 20 Feb 2023 01:18:02 +0800 Subject: [PATCH] test: fix test-v8-collect-gc-profile-in-worker.js --- 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 {