repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build(deps): bump poolifier
[poolifier.git]
/
tests
/
worker-files
/
cluster
/
longRunningWorkerSoftBehavior.js
diff --git
a/tests/worker-files/cluster/longRunningWorkerSoftBehavior.js
b/tests/worker-files/cluster/longRunningWorkerSoftBehavior.js
index 5c6fdf42679b72a7e213ce098240363016cf366c..0459acf73067dde08a3eadf59bbad27783fc2ce5 100644
(file)
--- a/
tests/worker-files/cluster/longRunningWorkerSoftBehavior.js
+++ b/
tests/worker-files/cluster/longRunningWorkerSoftBehavior.js
@@
-1,12
+1,11
@@
'use strict'
const { ClusterWorker } = require('../../../lib')
'use strict'
const { ClusterWorker } = 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
+ maxInactiveTime: 500
})
})