repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge dependabot/npm_and_yarn/examples/typescript/websocket-server-pool/ws-hybrid...
[poolifier.git]
/
tests
/
worker-files
/
cluster
/
asyncErrorWorker.js
diff --git
a/tests/worker-files/cluster/asyncErrorWorker.js
b/tests/worker-files/cluster/asyncErrorWorker.js
index fba8423f4f46dec5e7c169d5316b82e5b3b2056e..f358fc3ea409ddb987efa05a1ab38ee245afc4df 100644
(file)
--- a/
tests/worker-files/cluster/asyncErrorWorker.js
+++ b/
tests/worker-files/cluster/asyncErrorWorker.js
@@
-1,9
+1,9
@@
'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 error (data) {
async function error (data) {
- return
TestUtils.sleepWorker
Function(
+ return
sleepTask
Function(
data,
2000,
true,
data,
2000,
true,
@@
-12,6
+12,6
@@
async function error (data) {
}
module.exports = new ClusterWorker(error, {
}
module.exports = new ClusterWorker(error, {
-
maxInactiveTime: 500
,
- killBehavior: KillBehaviors.HARD
+
killBehavior: KillBehaviors.HARD
,
+ maxInactiveTime: 500
})
})