From 7045f62e8115936329079d6ba3c6df96db85ca42 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 28 Oct 2024 12:52:19 +0100 Subject: [PATCH] test: refine some test expectations MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- tests/pools/worker-node.test.mjs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/pools/worker-node.test.mjs b/tests/pools/worker-node.test.mjs index 8698680f..42eb4434 100644 --- a/tests/pools/worker-node.test.mjs +++ b/tests/pools/worker-node.test.mjs @@ -212,7 +212,7 @@ describe('Worker node test suite', () => { } ) ).toThrow( - new RangeError( + new TypeError( 'Cannot construct a worker node without a tasks queue priority option' ) ) @@ -228,7 +228,7 @@ describe('Worker node test suite', () => { } ) ).toThrow( - new RangeError( + new TypeError( 'Cannot construct a worker node with a tasks queue priority option that is not a boolean' ) ) @@ -361,7 +361,7 @@ describe('Worker node test suite', () => { expect(() => threadWorkerNode.getTaskFunctionWorkerUsage('invalidTaskFunction') ).toThrow( - new TypeError( + new Error( "Cannot get task function worker usage for task function name 'invalidTaskFunction' when task function properties list is not yet defined" ) ) @@ -372,7 +372,7 @@ describe('Worker node test suite', () => { expect(() => threadWorkerNode.getTaskFunctionWorkerUsage('invalidTaskFunction') ).toThrow( - new TypeError( + new Error( "Cannot get task function worker usage for task function name 'invalidTaskFunction' when task function properties list has less than 3 elements" ) ) -- 2.34.1