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 a8a6bb9ee14a0e1e670bb12348dfc47a1590b1b3..3e1ed0d193f65ff029f1c2c954825993ba0330be 100644
(file)
--- a/
tests/worker/cluster/testWorker.js
+++ b/
tests/worker/cluster/testWorker.js
@@
-1,5
+1,5
@@
'use strict'
'use strict'
-const { ClusterWorker } = require('../../../lib/index')
+const { ClusterWorker
, killBehaviorEnumeration
} = require('../../../lib/index')
const { isMaster } = require('cluster')
function test (data) {
const { isMaster } = require('cluster')
function test (data) {
@@
-12,4
+12,7
@@
function test (data) {
return isMaster
}
return isMaster
}
-module.exports = new ClusterWorker(test, { maxInactiveTime: 500 })
+module.exports = new ClusterWorker(test, {
+ maxInactiveTime: 500,
+ killBehavior: killBehaviorEnumeration.HARD
+})