X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fworker-files%2Fthread%2FerrorWorker.js;h=c33dc1f0eb5e7c454a8ae355fe0c997761c32c56;hb=c81bfafb054885924f47fbb3edfcb4bd694d40be;hp=cc13c050ca8cd07d485a06e1faa1ba2239c1540f;hpb=7c0ba92006a5c188738ffc5ff642c51f172df3d6;p=poolifier.git diff --git a/tests/worker-files/thread/errorWorker.js b/tests/worker-files/thread/errorWorker.js index cc13c050..c33dc1f0 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, {