repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
docs: update benchmarks vs. external pools
[poolifier.git]
/
tests
/
worker
/
abstract-worker.test.js
diff --git
a/tests/worker/abstract-worker.test.js
b/tests/worker/abstract-worker.test.js
index 02042620ea0a0bd4f57d41912de49e79829c37bf..e5bf4c81005f94a33cee53bc2f04a10b48549847 100644
(file)
--- a/
tests/worker/abstract-worker.test.js
+++ b/
tests/worker/abstract-worker.test.js
@@
-2,7
+2,7
@@
const { expect } = require('expect')
const { ClusterWorker, KillBehaviors, ThreadWorker } = require('../../lib')
describe('Abstract worker test suite', () => {
const { ClusterWorker, KillBehaviors, ThreadWorker } = require('../../lib')
describe('Abstract worker test suite', () => {
- class Stub
PoolWithIs
MainWorker extends ThreadWorker {
+ class Stub
WorkerWith
MainWorker extends ThreadWorker {
constructor (fn, opts) {
super(fn, opts)
this.mainWorker = undefined
constructor (fn, opts) {
super(fn, opts)
this.mainWorker = undefined
@@
-113,7
+113,7
@@
describe('Abstract worker test suite', () => {
it('Verify that getMainWorker() throw error if main worker is not set', () => {
expect(() =>
it('Verify that getMainWorker() throw error if main worker is not set', () => {
expect(() =>
- new Stub
PoolWithIs
MainWorker(() => {}).getMainWorker()
- ).toThrowError('Main worker
was
not set')
+ new Stub
WorkerWith
MainWorker(() => {}).getMainWorker()
+ ).toThrowError('Main worker not set')
})
})
})
})