Enhance changelog documentation
[poolifier.git] / tests / worker / thread / errorWorker.js
index 63a27513a74638aafbfabc08f04c6dec01f46ea9..6b7ee3c9e6dccdfcbcf063097e005ce8c531907e 100644 (file)
@@ -1,8 +1,11 @@
 'use strict'
-const { ThreadWorker } = require('../../../lib/index')
+const { ThreadWorker, killBehaviorEnumeration } = require('../../../lib/index')
 
 function error (data) {
   throw new Error(data)
 }
 
-module.exports = new ThreadWorker(error, { maxInactiveTime: 500 })
+module.exports = new ThreadWorker(error, {
+  maxInactiveTime: 500,
+  killBehavior: killBehaviorEnumeration.HARD
+})