repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor: move helpers to utils.ts file
[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 b9ad419f82f97e61646ecd6c35cbb89ab9b6ec83..c9bcc8921474dc1f0af630a0268097ad24a8ee95 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, KillBehaviors } = require('../../../lib
/index
')
+const { ClusterWorker, KillBehaviors } = require('../../../lib')
const TestUtils = require('../../test-utils')
async function sleep (data) {
const TestUtils = require('../../test-utils')
async function sleep (data) {
@@
-8,6
+8,5
@@
async function sleep (data) {
module.exports = new ClusterWorker(sleep, {
maxInactiveTime: 500,
module.exports = new ClusterWorker(sleep, {
maxInactiveTime: 500,
- async: true,
killBehavior: KillBehaviors.HARD
})
killBehavior: KillBehaviors.HARD
})