repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
perf: remove unneeded class indirection for dynamic pool in worker
[poolifier.git]
/
tests
/
worker-files
/
thread
/
errorWorker.js
diff --git
a/tests/worker-files/thread/errorWorker.js
b/tests/worker-files/thread/errorWorker.js
index e9f20ab8e5101120d7f51459bf338676208f404f..c33dc1f0eb5e7c454a8ae355fe0c997761c32c56 100644
(file)
--- a/
tests/worker-files/thread/errorWorker.js
+++ b/
tests/worker-files/thread/errorWorker.js
@@
-1,11
+1,12
@@
'use strict'
const { ThreadWorker, KillBehaviors } = require('../../../lib/index')
'use strict'
const { ThreadWorker, KillBehaviors } = require('../../../lib/index')
-function error (
data
) {
- throw new Error(
data
)
+function error () {
+ throw new Error(
'Error Message from ThreadWorker'
)
}
module.exports = new ThreadWorker(error, {
maxInactiveTime: 500,
}
module.exports = new ThreadWorker(error, {
maxInactiveTime: 500,
+ async: false,
killBehavior: KillBehaviors.HARD
})
killBehavior: KillBehaviors.HARD
})