X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fworker%2Fthread%2FasyncWorker.js;h=a6a9590d44334b5d99348bccd47cb5f7a78a39d2;hb=e8ea58d292e381a6be7f4d0fee5d5b691adb37ac;hp=59a900e914404f89b1cedd28ed75330283e2d723;hpb=5efc2a90350b03cb26758a5adbd692b250a7d331;p=poolifier.git diff --git a/tests/worker/thread/asyncWorker.js b/tests/worker/thread/asyncWorker.js index 59a900e9..a6a9590d 100644 --- a/tests/worker/thread/asyncWorker.js +++ b/tests/worker/thread/asyncWorker.js @@ -1,5 +1,5 @@ 'use strict' -const { ThreadWorker, killBehaviorEnumeration } = require('../../../lib/index') +const { ThreadWorker, killBehaviorTypes } = require('../../../lib/index') async function sleep (data) { return new Promise((resolve, reject) => { @@ -10,5 +10,5 @@ async function sleep (data) { module.exports = new ThreadWorker(sleep, { maxInactiveTime: 500, async: true, - killBehavior: killBehaviorEnumeration.HARD + killBehavior: killBehaviorTypes.HARD })