repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build(deps-dev): bump @types/ws
[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 6bc0ae6b3b19226c557ce3455fe068b7b21e8bc4..f696b101947d6dc7ed180feae6fe7a0f763797b6 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 { sleep
Worker
Function } = require('../../test-utils')
+const { sleep
Task
Function } = require('../../test-utils')
async function error (data) {
async function error (data) {
- return sleep
Worker
Function(
+ return sleep
Task
Function(
data,
2000,
true,
data,
2000,
true,
@@
-12,6
+12,6
@@
async function error (data) {
}
module.exports = new ThreadWorker(error, {
}
module.exports = new ThreadWorker(error, {
-
maxInactiveTime: 500
,
- killBehavior: KillBehaviors.HARD
+
killBehavior: KillBehaviors.HARD
,
+ maxInactiveTime: 500
})
})