From: Jérôme Benoit Date: Sun, 15 Oct 2023 19:32:45 +0000 (+0200) Subject: test: use worker info where appropriates X-Git-Tag: v3.0.1~4 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=51a8af404d54403f361fe7df7f4986cacf4a6bae;p=poolifier.git test: use worker info where appropriates Signed-off-by: Jérôme Benoit --- diff --git a/tests/pools/selection-strategies/selection-strategies.test.mjs b/tests/pools/selection-strategies/selection-strategies.test.mjs index 601d66c8..fc8a6feb 100644 --- a/tests/pools/selection-strategies/selection-strategies.test.mjs +++ b/tests/pools/selection-strategies/selection-strategies.test.mjs @@ -378,7 +378,7 @@ describe('Selection strategies test suite', () => { ) let results = new Set() for (let i = 0; i < max; i++) { - results.add(pool.workerNodes[pool.chooseWorkerNode()].worker.id) + results.add(pool.workerNodes[pool.chooseWorkerNode()].info.id) } expect(results.size).toBe(max) await pool.destroy() @@ -389,7 +389,7 @@ describe('Selection strategies test suite', () => { ) results = new Set() for (let i = 0; i < max; i++) { - results.add(pool.workerNodes[pool.chooseWorkerNode()].worker.threadId) + results.add(pool.workerNodes[pool.chooseWorkerNode()].info.id) } expect(results.size).toBe(max) await pool.destroy()