From e1d7cf3149e62061b8bd7c2c59e4015ae106d0a8 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Wed, 20 Nov 2024 21:19:07 -0800 Subject: [PATCH] Increase Node.js listener limit in globals importing during testing. --- test/GLOBALS.mjs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/GLOBALS.mjs b/test/GLOBALS.mjs index fa33be3..8ae5cae 100644 --- a/test/GLOBALS.mjs +++ b/test/GLOBALS.mjs @@ -1,6 +1,9 @@ // SPDX-FileCopyrightText: 2024 Chris Duncan // SPDX-License-Identifier: GPL-3.0-or-later +import { EventEmitter } from 'node:events' +EventEmitter.defaultMaxListeners = navigator.hardwareConcurrency * 2 + if (globalThis.sessionStorage == null) { const _sessionStorage = {} Object.defineProperty(globalThis, 'sessionStorage', { -- 2.34.1