repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
docs: add changelog entries
[poolifier.git]
/
tests
/
worker
/
thread-worker.test.js
diff --git
a/tests/worker/thread-worker.test.js
b/tests/worker/thread-worker.test.js
index 9eeaaa0a70d44eeced4d4ecc4fa88f885b426156..495e10b13b92e2ff663ff1de551b65028a8a3841 100644
(file)
--- a/
tests/worker/thread-worker.test.js
+++ b/
tests/worker/thread-worker.test.js
@@
-3,7
+3,7
@@
const { ThreadWorker } = require('../../lib')
describe('Thread worker test suite', () => {
let numberOfMessagesPosted = 0
describe('Thread worker test suite', () => {
let numberOfMessagesPosted = 0
- const postMessage =
function ()
{
+ const postMessage =
() =>
{
++numberOfMessagesPosted
}
class SpyWorker extends ThreadWorker {
++numberOfMessagesPosted
}
class SpyWorker extends ThreadWorker {
@@
-13,11
+13,6
@@
describe('Thread worker test suite', () => {
}
}
}
}
- it('Verify worker has default maxInactiveTime', () => {
- const worker = new ThreadWorker(() => {})
- expect(worker.opts.maxInactiveTime).toStrictEqual(60000)
- })
-
it('Verify that handleError() method is working properly', () => {
const error = new Error('Error as an error')
const worker = new ThreadWorker(() => {})
it('Verify that handleError() method is working properly', () => {
const error = new Error('Error as an error')
const worker = new ThreadWorker(() => {})