+ const numberOfExitEvents = await exitPromise
+ expect(pool.started).toBe(false)
+ expect(pool.workerNodes.length).toBe(0)
+ expect(numberOfExitEvents).toBe(min)
+ expect(poolDestroy).toBe(1)
+ })
+
+ it('Validation of inputs test', () => {
+ expect(() => new DynamicClusterPool(min)).toThrowError(
+ 'Please specify a file with a worker implementation'
+ )