repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
chore: generate documentation
[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..eda5a4059643c3efd092a9e269ad54b18fc8ecd7 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
{ sleepWorkerFunction }
= require('../../test-utils')
async function sleep (data) {
async function sleep (data) {
- return
TestUtils.
sleepWorkerFunction(data, 50000)
+ return sleepWorkerFunction(data, 50000)
}
module.exports = new ThreadWorker(sleep, {
}
module.exports = new ThreadWorker(sleep, {
- maxInactiveTime: 500,
- async: true
+ maxInactiveTime: 500
})
})