aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/real-world
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-01-12 10:06:03 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-01-12 10:06:03 +0100
commit790e65fcf7a0a9f065ecc68c5982efb80cd2e1ca (patch)
treecf398ea3bf7488becd39746c2e292c3696c7b6d0 /server/tests/real-world
parent7f4e7c36373217b8e92cf227c71999a0ce9a15d9 (diff)
downloadPeerTube-790e65fcf7a0a9f065ecc68c5982efb80cd2e1ca.tar.gz
PeerTube-790e65fcf7a0a9f065ecc68c5982efb80cd2e1ca.tar.zst
PeerTube-790e65fcf7a0a9f065ecc68c5982efb80cd2e1ca.zip
Try to fix travis build
Diffstat (limited to 'server/tests/real-world')
-rw-r--r--server/tests/real-world/real-world.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/tests/real-world/real-world.js b/server/tests/real-world/real-world.js
index 941e43a2e..12ab06d6d 100644
--- a/server/tests/real-world/real-world.js
+++ b/server/tests/real-world/real-world.js
@@ -30,16 +30,16 @@ const removeWeight = program.remove !== undefined ? parseInt(program.remove) : 4
30const updateWeight = program.update !== undefined ? parseInt(program.update) : 4 30const updateWeight = program.update !== undefined ? parseInt(program.update) : 4
31const flushAtExit = program.flush || false 31const flushAtExit = program.flush || false
32const actionInterval = program.action !== undefined ? parseInt(program.action) : 500 32const actionInterval = program.action !== undefined ? parseInt(program.action) : 500
33let integrityInterval = program.integrity !== undefined ? parseInt(program.integrity) : 60000 33const integrityInterval = program.integrity !== undefined ? parseInt(program.integrity) : 60000
34const displayDiffOnFail = program.integrity || false 34const displayDiffOnFail = program.integrity || false
35 35
36const numberOfPods = 6 36const numberOfPods = 6
37 37
38// Wait requests between pods 38// Wait requests between pods
39const baseRequestInterval = integrityInterval < constants.REQUESTS_INTERVAL ? integrityInterval : constants.REQUESTS_INTERVAL 39const baseRequestInterval = integrityInterval < constants.REQUESTS_INTERVAL ? constants.REQUESTS_INTERVAL : integrityInterval
40const requestsMaxPerInterval = baseRequestInterval / actionInterval 40const requestsMaxPerInterval = baseRequestInterval / actionInterval
41const intervalsToMakeAllRequests = Math.ceil(requestsMaxPerInterval / constants.REQUESTS_LIMIT_PER_POD) 41const intervalsToMakeAllRequests = Math.ceil(requestsMaxPerInterval / constants.REQUESTS_LIMIT_PER_POD)
42const waitForBeforeIntegrityCheck = (intervalsToMakeAllRequests * constants.REQUESTS_INTERVAL) + 1000 42const waitForBeforeIntegrityCheck = (intervalsToMakeAllRequests * constants.REQUESTS_INTERVAL) - integrityInterval + 1000
43 43
44console.log('Create weight: %d, update weight: %d, remove weight: %d.', createWeight, updateWeight, removeWeight) 44console.log('Create weight: %d, update weight: %d, remove weight: %d.', createWeight, updateWeight, removeWeight)
45if (flushAtExit) { 45if (flushAtExit) {