From: Jérôme Benoit Date: Wed, 8 May 2024 21:26:43 +0000 (+0200) Subject: refactor: code cleanups X-Git-Tag: v4.0.4~3 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=85b553ba6290bff4b3792921ebba53fb4a8a77fb;p=poolifier.git refactor: code cleanups Signed-off-by: Jérôme Benoit --- diff --git a/src/pools/worker-node.ts b/src/pools/worker-node.ts index 772a839b..88c6e8d1 100644 --- a/src/pools/worker-node.ts +++ b/src/pools/worker-node.ts @@ -212,8 +212,8 @@ export class WorkerNode type: getWorkerType(worker)!, dynamic: false, ready: false, - backPressure: false, - stealing: false + stealing: false, + backPressure: false } } diff --git a/tests/pools/abstract-pool.test.mjs b/tests/pools/abstract-pool.test.mjs index 8cbbc0a5..8cae47d6 100644 --- a/tests/pools/abstract-pool.test.mjs +++ b/tests/pools/abstract-pool.test.mjs @@ -819,8 +819,8 @@ describe('Abstract pool test suite', () => { type: WorkerTypes.cluster, dynamic: false, ready: true, - backPressure: false, - stealing: false + stealing: false, + backPressure: false }) } await pool.destroy() @@ -836,8 +836,8 @@ describe('Abstract pool test suite', () => { type: WorkerTypes.thread, dynamic: false, ready: true, - backPressure: false, - stealing: false + stealing: false, + backPressure: false }) } await pool.destroy() diff --git a/tests/pools/worker-node.test.mjs b/tests/pools/worker-node.test.mjs index 27ce3d2d..a2932282 100644 --- a/tests/pools/worker-node.test.mjs +++ b/tests/pools/worker-node.test.mjs @@ -192,8 +192,8 @@ describe('Worker node test suite', () => { type: WorkerTypes.thread, dynamic: false, ready: false, - backPressure: false, - stealing: false + stealing: false, + backPressure: false }) expect(threadWorkerNode.usage).toStrictEqual({ tasks: { @@ -238,8 +238,8 @@ describe('Worker node test suite', () => { type: WorkerTypes.cluster, dynamic: false, ready: false, - backPressure: false, - stealing: false + stealing: false, + backPressure: false }) expect(clusterWorkerNode.usage).toStrictEqual({ tasks: {