From: Jérôme Benoit Date: Wed, 14 Oct 2026 21:52:28 +0000 (+0200) Subject: test: use portable cluster stdio on Windows X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=eb730961e7550c12866d16c4c0bd70c582390dc5;p=poolifier.git test: use portable cluster stdio on Windows --- diff --git a/tests/pools/prototype-pollution.test.mjs b/tests/pools/prototype-pollution.test.mjs index b851caccb..e1200ea8f 100644 --- a/tests/pools/prototype-pollution.test.mjs +++ b/tests/pools/prototype-pollution.test.mjs @@ -314,6 +314,11 @@ describe('Worker option prototype pollution', () => { ) ) clearPrototypePollution() + if (process.platform === 'win32') { + // Node.js cannot pass a connected TCP socket as child process stdio on + // Windows. The socket is only needed to exercise native handle checks. + cluster.setupPrimary({ stdio: ['ignore', 'ignore', 'ignore', 'ipc'] }) + } polluteObjectPrototype('handle', 'polluted') pool.start() clearPrototypePollution()