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/smtp-client-pool/types/node-20...
[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 09278851c72e31070e31784447ad8cda0e637a56..028a7cf3a77a97689442576fb40d6457c623df8c 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-utils')
+const
{ sleepTaskFunction }
= require('../../test-utils')
async function error (data) {
async function error (data) {
- return
TestUtils.sleepWorker
Function(
+ return
sleepTask
Function(
data,
2000,
true,
data,
2000,
true,
@@
-13,6
+13,5
@@
async function error (data) {
module.exports = new ClusterWorker(error, {
maxInactiveTime: 500,
module.exports = new ClusterWorker(error, {
maxInactiveTime: 500,
- async: true,
killBehavior: KillBehaviors.HARD
})
killBehavior: KillBehaviors.HARD
})