X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fworker-files%2Fthread%2FerrorWorker.js;h=c4937c93ce9f1b45603bd0cfbef82d605602b3c3;hb=4597ddcd5fdeb8cef6a991e965038650fe200509;hp=e9f20ab8e5101120d7f51459bf338676208f404f;hpb=6fdc721bfdc82852c19cf4d53e0918c9665a580f;p=poolifier.git diff --git a/tests/worker-files/thread/errorWorker.js b/tests/worker-files/thread/errorWorker.js index e9f20ab8..c4937c93 100644 --- a/tests/worker-files/thread/errorWorker.js +++ b/tests/worker-files/thread/errorWorker.js @@ -1,8 +1,8 @@ 'use strict' const { ThreadWorker, KillBehaviors } = require('../../../lib/index') -function error (data) { - throw new Error(data) +function error () { + throw new Error('Error Message from ThreadWorker') } module.exports = new ThreadWorker(error, {