refactor: refine error message at pool instantiation inside a worker
[poolifier.git] / tests / pools / abstract / abstract-pool.test.js
index 953e50d07d09b43f1d36fb52317434b81e09152e..8652287769af1d63267dde6cc4873e1284fa15e2 100644 (file)
@@ -33,7 +33,9 @@ describe('Abstract pool test suite', () => {
             errorHandler: (e) => console.error(e)
           }
         )
-    ).toThrowError('Cannot start a pool from a worker!')
+    ).toThrowError(
+      'Cannot start a pool from the same worker type as the current pool one'
+    )
   })
 
   it('Verify that filePath is checked', () => {