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 in /examples/typescript/smtp-client-pool
[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 b03a505486e4af776ba12c830c53fb80ad68f221..3ec0d9508849627e494139fd0d5b70517abd631c 100644
(file)
--- a/
tests/worker-files/cluster/asyncWorker.js
+++ b/
tests/worker-files/cluster/asyncWorker.js
@@
-1,12
+1,12
@@
'use strict'
const { ClusterWorker, KillBehaviors } = require('../../../lib')
'use strict'
const { ClusterWorker, KillBehaviors } = require('../../../lib')
-const { sleepTaskFunction } = require('../../test-utils')
+const { sleepTaskFunction } = require('../../test-utils
.js
')
async function sleep (data) {
return sleepTaskFunction(data, 2000)
}
module.exports = new ClusterWorker(sleep, {
async function sleep (data) {
return sleepTaskFunction(data, 2000)
}
module.exports = new ClusterWorker(sleep, {
-
maxInactiveTime: 500
,
- killBehavior: KillBehaviors.HARD
+
killBehavior: KillBehaviors.HARD
,
+ maxInactiveTime: 500
})
})