Improvements for #161 (#169)
[poolifier.git] / tests / worker / thread / errorWorker.js
index 7f7fdadd6ff4fe612588d2b6fc7ecd1e27fc74db..e9f20ab8e5101120d7f51459bf338676208f404f 100644 (file)
@@ -1,5 +1,5 @@
 'use strict'
-const { ThreadWorker, killBehaviorTypes } = require('../../../lib/index')
+const { ThreadWorker, KillBehaviors } = require('../../../lib/index')
 
 function error (data) {
   throw new Error(data)
@@ -7,5 +7,5 @@ function error (data) {
 
 module.exports = new ThreadWorker(error, {
   maxInactiveTime: 500,
-  killBehavior: killBehaviorTypes.HARD
+  killBehavior: KillBehaviors.HARD
 })