Merge branch 'master' into add-worker-test
[poolifier.git] / tests / worker-files / cluster / asyncErrorWorker.js
index 2476853b55520ab5fea4c917fb70d0f05c66dfa0..b9fd9016ab91801122e4cb6394b5e590377b4f3f 100644 (file)
@@ -1,5 +1,5 @@
 'use strict'
-const { ClusterWorker } = require('../../../lib/index')
+const { ClusterWorker, KillBehaviors } = require('../../../lib/index')
 
 async function error (data) {
   return new Promise((resolve, reject) => {
@@ -12,5 +12,6 @@ async function error (data) {
 
 module.exports = new ClusterWorker(error, {
   maxInactiveTime: 500,
-  async: true
+  async: true,
+  killBehavior: KillBehaviors.HARD
 })