From: Jérôme Benoit Date: Wed, 18 Oct 2023 17:18:26 +0000 (+0200) Subject: test: fix for node.js 21.x X-Git-Tag: v3.0.3~4 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=4a8faf08d83cfe7c80d1f1f4b62813b7de1f3905;p=poolifier.git test: fix for node.js 21.x Signed-off-by: Jérôme Benoit --- diff --git a/tests/pools/thread/fixed.test.mjs b/tests/pools/thread/fixed.test.mjs index a5960946..fc68fdb2 100644 --- a/tests/pools/thread/fixed.test.mjs +++ b/tests/pools/thread/fixed.test.mjs @@ -202,8 +202,9 @@ describe('Fixed thread pool test suite', () => { error = e } expect(result).toStrictEqual({ ok: 1 }) - expect(error).toMatchObject( - new Error('Found invalid object in transferList') + expect(error).toBeInstanceOf(Error) + expect(error.message).toMatch( + /Found invalid (object|value) in transferList/ ) })