X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fpools%2Fselection-strategies%2Fselection-strategies-utils.test.mjs;h=9b57e78945baac77c4c522f54147560552703579;hb=0aa00166eaa9a8c9b505b4fa7fd5dc50d831b7ef;hp=dc6fc71fefca8b32a636d02d7a2dd757c4e838ca;hpb=915040cce0e378cc1e806391bf77af06880c12f2;p=poolifier.git diff --git a/tests/pools/selection-strategies/selection-strategies-utils.test.mjs b/tests/pools/selection-strategies/selection-strategies-utils.test.mjs index dc6fc71f..9b57e789 100644 --- a/tests/pools/selection-strategies/selection-strategies-utils.test.mjs +++ b/tests/pools/selection-strategies/selection-strategies-utils.test.mjs @@ -3,7 +3,7 @@ import { expect } from 'expect' import { FixedClusterPool, FixedThreadPool } from '../../../lib/index.cjs' import { buildWorkerChoiceStrategyOptions, - getWorkerChoiceStrategiesRetries + getWorkerChoiceStrategiesRetries, } from '../../../lib/pools/selection-strategies/selection-strategies-utils.cjs' describe('Selection strategies utils test suite', () => { @@ -19,8 +19,8 @@ describe('Selection strategies utils test suite', () => { elu: { median: false }, weights: expect.objectContaining({ 0: expect.any(Number), - [pool.info.maxSize - 1]: expect.any(Number) - }) + [pool.info.maxSize - 1]: expect.any(Number), + }), }) const workerChoiceStrategyOptions = { runTime: { median: true }, @@ -28,8 +28,8 @@ describe('Selection strategies utils test suite', () => { elu: { median: true }, weights: { 0: 100, - 1: 100 - } + 1: 100, + }, } expect( buildWorkerChoiceStrategyOptions(pool, workerChoiceStrategyOptions) @@ -50,8 +50,8 @@ describe('Selection strategies utils test suite', () => { elu: { median: true }, weights: { 0: 100, - 1: 100 - } + 1: 100, + }, } expect( getWorkerChoiceStrategiesRetries(pool, workerChoiceStrategyOptions)