From: Chris Duncan Date: Thu, 21 Nov 2024 05:19:07 +0000 (-0800) Subject: Increase Node.js listener limit in globals importing during testing. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=e1d7cf3149e62061b8bd7c2c59e4015ae106d0a8;p=libnemo.git Increase Node.js listener limit in globals importing during testing. --- 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', {