diff --git a/test/parallel/test-worker-fshandles-error-on-termination.js b/test/parallel/test-worker-fshandles-error-on-termination.js index 72fb969963..ada99a991b 100644 --- a/test/parallel/test-worker-fshandles-error-on-termination.js +++ b/test/parallel/test-worker-fshandles-error-on-termination.js @@ -6,8 +6,8 @@ const fs = require('fs/promises'); const { scheduler } = require('timers/promises'); const { parentPort, Worker } = require('worker_threads'); -const MAX_ITERATIONS = 20; -const MAX_THREADS = 10; +const MAX_ITERATIONS = 5; +const MAX_THREADS = 6; // Do not use isMainThread so that this test itself can be run inside a Worker. if (!process.env.HAS_STARTED_WORKER) { diff --git a/test/parallel/test-worker-fshandles-open-close-on-termination.js b/test/parallel/test-worker-fshandles-open-close-on-termination.js index 2cbd886b15..db7c0221fc 100644 --- a/test/parallel/test-worker-fshandles-open-close-on-termination.js +++ b/test/parallel/test-worker-fshandles-open-close-on-termination.js @@ -6,8 +6,8 @@ const fs = require('fs/promises'); const { scheduler } = require('timers/promises'); const { parentPort, Worker } = require('worker_threads'); -const MAX_ITERATIONS = 20; -const MAX_THREADS = 10; +const MAX_ITERATIONS = 5; +const MAX_THREADS = 6; // Do not use isMainThread so that this test itself can be run inside a Worker. if (!process.env.HAS_STARTED_WORKER) { diff --git a/test/parallel/test-worker-http2-stream-terminate.js b/test/parallel/test-worker-http2-stream-terminate.js index 94e60e773c..a2a1c02003 100644 --- a/test/parallel/test-worker-http2-stream-terminate.js +++ b/test/parallel/test-worker-http2-stream-terminate.js @@ -11,8 +11,8 @@ const { Worker, parentPort } = require('worker_threads'); // stream activity is ongoing, in particular the C++ function // ReportWritesToJSStreamListener::OnStreamAfterReqFinished. -const MAX_ITERATIONS = 20; -const MAX_THREADS = 10; +const MAX_ITERATIONS = 5; +const MAX_THREADS = 6; // Do not use isMainThread so that this test itself can be run inside a Worker. if (!process.env.HAS_STARTED_WORKER) {