repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build(deps): bump poolifier
[poolifier.git]
/
tests
/
pools
/
thread
/
fixed.test.mjs
diff --git
a/tests/pools/thread/fixed.test.mjs
b/tests/pools/thread/fixed.test.mjs
index 3969c83ad7464c728d7df33dd092673c16384734..fc68fdb23a01a163e33d532d0dd8a1a27b1781ea 100644
(file)
--- a/
tests/pools/thread/fixed.test.mjs
+++ b/
tests/pools/thread/fixed.test.mjs
@@
-202,8
+202,9
@@
describe('Fixed thread pool test suite', () => {
error = e
}
expect(result).toStrictEqual({ ok: 1 })
error = e
}
expect(result).toStrictEqual({ ok: 1 })
- expect(error).toStrictEqual(
- new TypeError('Found invalid object in transferList')
+ expect(error).toBeInstanceOf(Error)
+ expect(error.message).toMatch(
+ /Found invalid (object|value) in transferList/
)
})
)
})
@@
-338,9
+339,9
@@
describe('Fixed thread pool test suite', () => {
await pool.destroy()
})
await pool.destroy()
})
- it('Verify that a pool with zero worker fails',
async
() => {
+ it('Verify that a pool with zero worker fails', () => {
expect(
() => new FixedThreadPool(0, './tests/worker-files/thread/testWorker.mjs')
expect(
() => new FixedThreadPool(0, './tests/worker-files/thread/testWorker.mjs')
- ).toThrow
Error
('Cannot instantiate a fixed pool with zero worker')
+ ).toThrow('Cannot instantiate a fixed pool with zero worker')
})
})
})
})