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/http-server-pool/fastify-worker_thr...
[poolifier.git]
/
tests
/
worker-files
/
cluster
/
testWorker.js
diff --git
a/tests/worker-files/cluster/testWorker.js
b/tests/worker-files/cluster/testWorker.js
index 25774bb239a084526fc1b833807c4ea2593d0ab3..4511bcaacc72844582382b3a9e260df9dd4dc48a 100644
(file)
--- a/
tests/worker-files/cluster/testWorker.js
+++ b/
tests/worker-files/cluster/testWorker.js
@@
-1,15
+1,15
@@
'use strict'
const { ClusterWorker, KillBehaviors } = require('../../../lib')
'use strict'
const { ClusterWorker, KillBehaviors } = require('../../../lib')
-const { execute
Worker
Function } = require('../../test-utils')
-const {
Worker
Functions } = require('../../test-types')
+const { execute
Task
Function } = require('../../test-utils')
+const {
Task
Functions } = require('../../test-types')
function test (data) {
data = data || {}
function test (data) {
data = data || {}
- data.function = data.function ||
Worker
Functions.jsonIntegerSerialization
- return execute
Worker
Function(data)
+ data.function = data.function ||
Task
Functions.jsonIntegerSerialization
+ return execute
Task
Function(data)
}
module.exports = new ClusterWorker(test, {
}
module.exports = new ClusterWorker(test, {
-
maxInactiveTime: 500
,
- killBehavior: KillBehaviors.HARD
+
killBehavior: KillBehaviors.HARD
,
+ maxInactiveTime: 500
})
})