docs: refine code comment
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Tue, 19 Dec 2023 21:38:15 +0000 (22:38 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Tue, 19 Dec 2023 21:38:15 +0000 (22:38 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
src/pools/abstract-pool.ts
tests/pools/abstract-pool.test.mjs

index ebc7b5d95f1d3fd84bb00ff0b689bc8ce18bade9..56bd0348829590429dc465944fef22b9f28c4b4c 100644 (file)
@@ -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,
index 7a9c18e46bdb4e4e8dbad1845a8eb2375a184b81..44aca3993c7d94d9f52185e553333db2316a8a71 100644 (file)
@@ -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 () => {