repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge pull request #51 from pioardi/dependabot/npm_and_yarn/expect-26.5.3
[poolifier.git]
/
tests
/
workers
/
echoWorker.js
diff --git
a/tests/workers/echoWorker.js
b/tests/workers/echoWorker.js
index 2a5ef89dd199d0ad490065bd6ebdd28002d6abe5..1026a369199fabf767532e463d436794f502ef6d 100644
(file)
--- a/
tests/workers/echoWorker.js
+++ b/
tests/workers/echoWorker.js
@@
-5,10
+5,4
@@
function echo (data) {
return data
}
-class MyWorker extends ThreadWorker {
- constructor () {
- super(echo, { maxInactiveTime: 500 })
- }
-}
-
-module.exports = new MyWorker()
+module.exports = new ThreadWorker(echo, { maxInactiveTime: 500 })