repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bump typedoc from 0.20.31 to 0.20.32 (#273)
[poolifier.git]
/
tests
/
worker-files
/
cluster
/
asyncWorker.js
diff --git
a/tests/worker-files/cluster/asyncWorker.js
b/tests/worker-files/cluster/asyncWorker.js
index 975b0b365efb92dad4d24f44a20434f1267a4cd4..b5c784dfaca6b7491b25914ceefa81a94042c44f 100644
(file)
--- a/
tests/worker-files/cluster/asyncWorker.js
+++ b/
tests/worker-files/cluster/asyncWorker.js
@@
-1,5
+1,5
@@
'use strict'
'use strict'
-const { ClusterWorker } = require('../../../lib/index')
+const { ClusterWorker
, KillBehaviors
} = require('../../../lib/index')
async function sleep (data) {
return new Promise((resolve, reject) => {
async function sleep (data) {
return new Promise((resolve, reject) => {
@@
-7,4
+7,8
@@
async function sleep (data) {
})
}
})
}
-module.exports = new ClusterWorker(sleep, { maxInactiveTime: 500, async: true })
+module.exports = new ClusterWorker(sleep, {
+ maxInactiveTime: 500,
+ async: true,
+ killBehavior: KillBehaviors.HARD
+})