repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build(deps-dev): bump @types/node
[poolifier.git]
/
tests
/
worker-files
/
cluster
/
longRunningWorkerHardBehavior.js
diff --git
a/tests/worker-files/cluster/longRunningWorkerHardBehavior.js
b/tests/worker-files/cluster/longRunningWorkerHardBehavior.js
index 005699e92195beafe6c24bcbfeb1938e823f8efe..a95d6538b49f3647c5376c8f4459db799ac92c6c 100644
(file)
--- a/
tests/worker-files/cluster/longRunningWorkerHardBehavior.js
+++ b/
tests/worker-files/cluster/longRunningWorkerHardBehavior.js
@@
-1,13
+1,12
@@
'use strict'
const { ClusterWorker, KillBehaviors } = require('../../../lib')
'use strict'
const { ClusterWorker, KillBehaviors } = require('../../../lib')
-const
TestUtils = require('../../test-util
s')
+const
{ sleepTaskFunction } = require('../../test-utils.j
s')
async function sleep (data) {
async function sleep (data) {
- return
TestUtils.sleepWorker
Function(data, 50000)
+ return
sleepTask
Function(data, 50000)
}
module.exports = new ClusterWorker(sleep, {
}
module.exports = new ClusterWorker(sleep, {
- maxInactiveTime: 500,
- async: true,
- killBehavior: KillBehaviors.HARD
+ killBehavior: KillBehaviors.HARD,
+ maxInactiveTime: 500
})
})