repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test: switch to ESM
[poolifier.git]
/
tests
/
worker-files
/
cluster
/
errorWorker.js
diff --git
a/tests/worker-files/cluster/errorWorker.js
b/tests/worker-files/cluster/errorWorker.js
index 87df92543664b6e3c5395a52e8c822d65ea0c8b6..b8e11d369d20c3ff06e2fc506f83aeda39feaa49 100644
(file)
--- a/
tests/worker-files/cluster/errorWorker.js
+++ b/
tests/worker-files/cluster/errorWorker.js
@@
-1,11
+1,11
@@
'use strict'
'use strict'
-const { ClusterWorker
} = require('../../../lib/index
')
+const { ClusterWorker
, KillBehaviors } = require('../../../lib
')
-function error (
data
) {
+function error () {
throw new Error('Error Message from ClusterWorker')
}
module.exports = new ClusterWorker(error, {
throw new Error('Error Message from ClusterWorker')
}
module.exports = new ClusterWorker(error, {
-
maxInactiveTime: 500
,
- async: false
+
killBehavior: KillBehaviors.HARD
,
+ maxInactiveTime: 500
})
})