refactor: cleanup exports
[poolifier.git] / tests / worker-files / thread / errorWorker.js
index cc13c050ca8cd07d485a06e1faa1ba2239c1540f..19785dc36152b694d16e62468504590f9e921cb2 100644 (file)
@@ -1,12 +1,11 @@
 'use strict'
-const { ThreadWorker, KillBehaviors } = require('../../../lib/index')
+const { ThreadWorker, KillBehaviors } = require('../../../lib')
 
-function error (data) {
-  throw new Error(data)
+function error () {
+  throw new Error('Error Message from ThreadWorker')
 }
 
 module.exports = new ThreadWorker(error, {
   maxInactiveTime: 500,
-  async: false,
   killBehavior: KillBehaviors.HARD
 })