aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-01-11 18:06:51 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-01-11 18:06:51 +0100
commitd8cc063e9775688a1631eda9203411a2dba0333c (patch)
tree056b6e3ccf0cb5d97b2d300f0ed2776f24631d7a /server/tests
parentdea32aacde362a5fbd62a88cd32487768b788468 (diff)
downloadPeerTube-d8cc063e9775688a1631eda9203411a2dba0333c.tar.gz
PeerTube-d8cc063e9775688a1631eda9203411a2dba0333c.tar.zst
PeerTube-d8cc063e9775688a1631eda9203411a2dba0333c.zip
Server: do not break remote videos processing on error
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/real-world/real-world.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/tests/real-world/real-world.js b/server/tests/real-world/real-world.js
index 751d3923f..9a63860ad 100644
--- a/server/tests/real-world/real-world.js
+++ b/server/tests/real-world/real-world.js
@@ -36,7 +36,7 @@ const numberOfPods = 6
36// Wait requests between pods 36// Wait requests between pods
37const baseRequestInterval = integrityInterval < constants.REQUESTS_INTERVAL ? integrityInterval : constants.REQUESTS_INTERVAL 37const baseRequestInterval = integrityInterval < constants.REQUESTS_INTERVAL ? integrityInterval : constants.REQUESTS_INTERVAL
38const requestsMaxPerInterval = baseRequestInterval / actionInterval 38const requestsMaxPerInterval = baseRequestInterval / actionInterval
39const intervalsToMakeAllRequests = Math.ceil(requestsMaxPerInterval / constants.REQUESTS_LIMIT) 39const intervalsToMakeAllRequests = Math.ceil(requestsMaxPerInterval / (constants.REQUESTS_LIMIT_PER_POD * numberOfPods))
40const waitForBeforeIntegrityCheck = (intervalsToMakeAllRequests * constants.REQUESTS_INTERVAL) + 1000 40const waitForBeforeIntegrityCheck = (intervalsToMakeAllRequests * constants.REQUESTS_INTERVAL) + 1000
41 41
42console.log('Create weight: %d, remove weight: %d.', createWeight, removeWeight) 42console.log('Create weight: %d, remove weight: %d.', createWeight, removeWeight)