repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build(examples): fix TS configuration for 5.2.x
[poolifier.git]
/
tests
/
worker-files
/
thread
/
asyncErrorWorker.js
diff --git
a/tests/worker-files/thread/asyncErrorWorker.js
b/tests/worker-files/thread/asyncErrorWorker.js
index ac9663304c101eb49504fe8ce989c7610228afe8..c73fd2919230f03234726bba99e957e86596206b 100644
(file)
--- a/
tests/worker-files/thread/asyncErrorWorker.js
+++ b/
tests/worker-files/thread/asyncErrorWorker.js
@@
-1,9
+1,9
@@
'use strict'
const { ThreadWorker, KillBehaviors } = require('../../../lib')
'use strict'
const { ThreadWorker, KillBehaviors } = require('../../../lib')
-const
TestUtils
= require('../../test-utils')
+const
{ sleepTaskFunction }
= require('../../test-utils')
async function error (data) {
async function error (data) {
- return
TestUtils.sleepWorker
Function(
+ return
sleepTask
Function(
data,
2000,
true,
data,
2000,
true,
@@
-13,6
+13,5
@@
async function error (data) {
module.exports = new ThreadWorker(error, {
maxInactiveTime: 500,
module.exports = new ThreadWorker(error, {
maxInactiveTime: 500,
- async: true,
killBehavior: KillBehaviors.HARD
})
killBehavior: KillBehaviors.HARD
})