From: Jérôme Benoit Date: Tue, 19 Dec 2023 21:38:15 +0000 (+0100) Subject: docs: refine code comment X-Git-Tag: v3.1.7~1^2~22 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=c004ececb19646937d2bf9e6431f51fd4108b782;p=poolifier.git docs: refine code comment Signed-off-by: Jérôme Benoit --- diff --git a/src/pools/abstract-pool.ts b/src/pools/abstract-pool.ts index ebc7b5d9..56bd0348 100644 --- a/src/pools/abstract-pool.ts +++ b/src/pools/abstract-pool.ts @@ -131,9 +131,9 @@ export abstract class AbstractPool< * Constructs a new poolifier pool. * * @param minimumNumberOfWorkers - Minimum number of workers that this pool should manage. - * @param maximumNumberOfWorkers - Maximum number of workers that this pool should manage. * @param filePath - Path to the worker file. * @param opts - Options for the pool. + * @param maximumNumberOfWorkers - Maximum number of workers that this pool should manage. */ public constructor ( protected readonly minimumNumberOfWorkers: number, diff --git a/tests/pools/abstract-pool.test.mjs b/tests/pools/abstract-pool.test.mjs index 7a9c18e4..44aca399 100644 --- a/tests/pools/abstract-pool.test.mjs +++ b/tests/pools/abstract-pool.test.mjs @@ -1284,7 +1284,7 @@ describe('Abstract pool test suite', () => { await pool.destroy() const elapsedTime = performance.now() - startTime expect(tasksFinished).toBe(0) - expect(elapsedTime).toBeLessThanOrEqual(tasksFinishedTimeout + 300) + expect(elapsedTime).toBeLessThanOrEqual(tasksFinishedTimeout + 600) }) it('Verify that pool asynchronous resource track tasks execution', async () => {