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
/
longRunningWorkerHardBehavior.js
diff --git
a/tests/worker-files/cluster/longRunningWorkerHardBehavior.js
b/tests/worker-files/cluster/longRunningWorkerHardBehavior.js
index e308eb5ce3923306c36b71d458f013733bd72f56..ee6b93cc87c922019d08d7809533b8f2b1305425 100644
(file)
--- a/
tests/worker-files/cluster/longRunningWorkerHardBehavior.js
+++ b/
tests/worker-files/cluster/longRunningWorkerHardBehavior.js
@@
-1,12
+1,12
@@
'use strict'
const { ClusterWorker, KillBehaviors } = require('../../../lib')
'use strict'
const { ClusterWorker, KillBehaviors } = require('../../../lib')
-const { sleep
Worker
Function } = require('../../test-utils')
+const { sleep
Task
Function } = require('../../test-utils')
async function sleep (data) {
async function sleep (data) {
- return sleep
Worker
Function(data, 50000)
+ return sleep
Task
Function(data, 50000)
}
module.exports = new ClusterWorker(sleep, {
}
module.exports = new ClusterWorker(sleep, {
-
maxInactiveTime: 500
,
- killBehavior: KillBehaviors.HARD
+
killBehavior: KillBehaviors.HARD
,
+ maxInactiveTime: 500
})
})