Improvements for #161 (#169)
[poolifier.git] / tests / worker / cluster / echoWorker.js
index 77898bacbafb70caf8cd3deb48758a49d8d2100d..054c4bb30c2d8ef2ad2ed9dd52bc5c6f9af793e2 100644 (file)
@@ -1,5 +1,5 @@
 'use strict'
-const { ClusterWorker, killBehaviorTypes } = require('../../../lib/index')
+const { ClusterWorker, KillBehaviors } = require('../../../lib/index')
 
 function echo (data) {
   return data
@@ -7,5 +7,5 @@ function echo (data) {
 
 module.exports = new ClusterWorker(echo, {
   maxInactiveTime: 500,
-  killBehavior: killBehaviorTypes.HARD
+  killBehavior: KillBehaviors.HARD
 })