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
/
asyncWorker.js
diff --git
a/tests/worker-files/thread/asyncWorker.js
b/tests/worker-files/thread/asyncWorker.js
index 6508d6dac5d313bcd41b458643fa1a7efd3d1124..5e3ec257f6b594b1d2cf49cccd09e36d8d2bb61a 100644
(file)
--- a/
tests/worker-files/thread/asyncWorker.js
+++ b/
tests/worker-files/thread/asyncWorker.js
@@
-1,13
+1,12
@@
'use strict'
'use strict'
-const { ThreadWorker, KillBehaviors } = require('../../../lib
/index
')
-const
TestUtils
= require('../../test-utils')
+const { ThreadWorker, KillBehaviors } = require('../../../lib')
+const
{ sleepWorkerFunction }
= require('../../test-utils')
async function sleep (data) {
async function sleep (data) {
- return
TestUtils.workerSleep
Function(data, 2000)
+ return
sleepWorker
Function(data, 2000)
}
module.exports = new ThreadWorker(sleep, {
maxInactiveTime: 500,
}
module.exports = new ThreadWorker(sleep, {
maxInactiveTime: 500,
- async: true,
killBehavior: KillBehaviors.HARD
})
killBehavior: KillBehaviors.HARD
})