X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fworker-files%2Fthread%2FerrorWorker.js;h=841af907f1b2f6c290282c91adfc6afec5ae4ed4;hb=e1ffb94fcac39a7459c47edaa086a7729a1dec44;hp=e9f20ab8e5101120d7f51459bf338676208f404f;hpb=e901162fa610e2af305aac504549580b2de48cab;p=poolifier.git diff --git a/tests/worker-files/thread/errorWorker.js b/tests/worker-files/thread/errorWorker.js index e9f20ab8..841af907 100644 --- a/tests/worker-files/thread/errorWorker.js +++ b/tests/worker-files/thread/errorWorker.js @@ -2,10 +2,11 @@ const { ThreadWorker, KillBehaviors } = require('../../../lib/index') function error (data) { - throw new Error(data) + throw new Error('Error Message from ThreadWorker') } module.exports = new ThreadWorker(error, { maxInactiveTime: 500, + async: false, killBehavior: KillBehaviors.HARD })