Improvements for #161 (#169)
[poolifier.git] / tests / worker / cluster / errorWorker.js
index 02168a677b3367fbb5980cc3b9a6bf39b18da986..d6d9297ac8e5f671c3249622139c3ba0c8b8d8b6 100644 (file)
@@ -1,5 +1,5 @@
 'use strict'
-const { ClusterWorker, killBehaviorTypes } = require('../../../lib/index')
+const { ClusterWorker, KillBehaviors } = require('../../../lib/index')
 
 function error (data) {
   throw new Error('Error Message from ClusterWorker')
@@ -8,5 +8,5 @@ function error (data) {
 module.exports = new ClusterWorker(error, {
   maxInactiveTime: 500,
   async: false,
-  killBehavior: killBehaviorTypes
+  killBehavior: KillBehaviors.HARD
 })