From cd424e3162f5ae6be04dc156cdc8562dae16c33f Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 2 Oct 2023 18:41:46 +0200 Subject: [PATCH] test: cleanup sinon import MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- package.json | 2 +- .../weighted-round-robin-worker-choice-strategy.test.mjs | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/package.json b/package.json index 81f7ce44..dafcf0aa 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "prepublishOnly": "pnpm build:prod" }, "ts-standard": { - "globals": ["describe", "it", "before", "after", "beforeEach", "afterEach"] + "globals": ["describe", "it", "after", "before", "afterEach", "beforeEach"] }, "engines": { "node": ">=16.14.0", diff --git a/tests/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.test.mjs b/tests/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.test.mjs index a8c4bdd5..25c262fd 100644 --- a/tests/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.test.mjs +++ b/tests/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.test.mjs @@ -1,5 +1,4 @@ import { expect } from 'expect' -import { restore } from 'sinon' import { FixedThreadPool } from '../../../lib/index.js' import { WeightedRoundRobinWorkerChoiceStrategy } from '../../../lib/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.js' import { generateRandomInteger } from '../../test-utils.js' @@ -16,10 +15,6 @@ describe('Weighted round robin strategy worker choice strategy test suite', () = ) }) - afterEach(() => { - restore() - }) - after(async () => { await pool.destroy() }) -- 2.34.1