Improvements for #161 (#169)
[poolifier.git] / tests / worker / thread / testWorker.js
index 7510f00bf51086c7078f1bdeed385bd13a5707d8..c70069c7269f17d2f83069554d0e3fba5d2a15e6 100644 (file)
@@ -1,5 +1,5 @@
 'use strict'
-const { ThreadWorker, killBehaviorTypes } = require('../../../lib/index')
+const { ThreadWorker, KillBehaviors } = require('../../../lib/index')
 const { isMainThread } = require('worker_threads')
 
 function test (data) {
@@ -14,5 +14,5 @@ function test (data) {
 
 module.exports = new ThreadWorker(test, {
   maxInactiveTime: 500,
-  killBehavior: killBehaviorTypes.HARD
+  killBehavior: KillBehaviors.HARD
 })