repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge dependabot/npm_and_yarn/examples/typescript/http-server-pool/fastify-hybrid...
[poolifier.git]
/
tests
/
worker-files
/
thread
/
longRunningWorkerSoftBehavior.js
diff --git
a/tests/worker-files/thread/longRunningWorkerSoftBehavior.js
b/tests/worker-files/thread/longRunningWorkerSoftBehavior.js
index 2c7b03b7109081ba16e6e76510c992b056fac872..3b90236c97cbdb61677fb2b4aae4bb08fadc8ca6 100644
(file)
--- a/
tests/worker-files/thread/longRunningWorkerSoftBehavior.js
+++ b/
tests/worker-files/thread/longRunningWorkerSoftBehavior.js
@@
-1,12
+1,11
@@
'use strict'
'use strict'
-const { ThreadWorker } = require('../../../lib
/index
')
-const
TestUtils
= require('../../test-utils')
+const { ThreadWorker } = require('../../../lib')
+const
{ sleepTaskFunction }
= require('../../test-utils')
async function sleep (data) {
async function sleep (data) {
- return
TestUtils.sleepWorker
Function(data, 50000)
+ return
sleepTask
Function(data, 50000)
}
module.exports = new ThreadWorker(sleep, {
}
module.exports = new ThreadWorker(sleep, {
- maxInactiveTime: 500,
- async: true
+ maxInactiveTime: 500
})
})