repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into chore/use-biome
[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 0b6f5d8acb937a02bc4dcb47d855f6a89456ddc2..468a0ff92ce8dbedfa925eef3ed30b2d44a1e1d3 100644
(file)
--- a/
tests/worker-files/cluster/asyncErrorWorker.js
+++ b/
tests/worker-files/cluster/asyncErrorWorker.js
@@
-1,9
+1,9
@@
'use strict'
'use strict'
-const { ClusterWorker, KillBehaviors } = require('../../../lib
/index
')
-const
TestUtils
= require('../../test-utils')
+const { ClusterWorker, KillBehaviors } = require('../../../lib')
+const
{ sleepTaskFunction }
= require('../../test-utils')
async function error (data) {
async function error (data) {
- return
TestUtils.workerSleep
Function(
+ return
sleepTask
Function(
data,
2000,
true,
data,
2000,
true,
@@
-12,7
+12,6
@@
async function error (data) {
}
module.exports = new ClusterWorker(error, {
}
module.exports = new ClusterWorker(error, {
- maxInactiveTime: 500,
- async: true,
- killBehavior: KillBehaviors.HARD
+ killBehavior: KillBehaviors.HARD,
+ maxInactiveTime: 500
})
})