repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Increased test timeouts, we need to look into that as soon as we can
[poolifier.git]
/
tests
/
worker
/
cluster
/
testWorker.js
diff --git
a/tests/worker/cluster/testWorker.js
b/tests/worker/cluster/testWorker.js
index fd8c5603eaaf34cf85e9e3d25a08bdaa475620c2..3e1ed0d193f65ff029f1c2c954825993ba0330be 100644
(file)
--- a/
tests/worker/cluster/testWorker.js
+++ b/
tests/worker/cluster/testWorker.js
@@
-1,6
+1,6
@@
'use strict'
'use strict'
-const { ClusterWorker } = require('../../../lib/index')
-const
cluster
= require('cluster')
+const { ClusterWorker
, killBehaviorEnumeration
} = require('../../../lib/index')
+const
{ isMaster }
= require('cluster')
function test (data) {
for (let i = 0; i <= 50; i++) {
function test (data) {
for (let i = 0; i <= 50; i++) {
@@
-9,7
+9,10
@@
function test (data) {
}
JSON.stringify(o)
}
}
JSON.stringify(o)
}
- return
cluster.
isMaster
+ return isMaster
}
}
-module.exports = new ClusterWorker(test, { maxInactiveTime: 500 })
+module.exports = new ClusterWorker(test, {
+ maxInactiveTime: 500,
+ killBehavior: killBehaviorEnumeration.HARD
+})