repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change killBehaviorEnumeration to killBehaviorTypes
[poolifier.git]
/
tests
/
worker
/
cluster
/
asyncWorker.js
diff --git
a/tests/worker/cluster/asyncWorker.js
b/tests/worker/cluster/asyncWorker.js
index b47adc916affe53ad7e12a7fe447aac1c7f85a4e..106df109d4daffc4f12c50c92e7079436d38df2a 100644
(file)
--- a/
tests/worker/cluster/asyncWorker.js
+++ b/
tests/worker/cluster/asyncWorker.js
@@
-1,5
+1,5
@@
'use strict'
'use strict'
-const { ClusterWorker, killBehavior
Enumeration
} = require('../../../lib/index')
+const { ClusterWorker, killBehavior
Types
} = require('../../../lib/index')
async function sleep (data) {
return new Promise((resolve, reject) => {
async function sleep (data) {
return new Promise((resolve, reject) => {
@@
-10,5
+10,5
@@
async function sleep (data) {
module.exports = new ClusterWorker(sleep, {
maxInactiveTime: 500,
async: true,
module.exports = new ClusterWorker(sleep, {
maxInactiveTime: 500,
async: true,
- killBehavior: killBehavior
Enumeration
.HARD
+ killBehavior: killBehavior
Types
.HARD
})
})