diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-01-12 10:06:03 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-01-12 10:06:03 +0100 |
commit | 790e65fcf7a0a9f065ecc68c5982efb80cd2e1ca (patch) | |
tree | cf398ea3bf7488becd39746c2e292c3696c7b6d0 /server/tests/real-world | |
parent | 7f4e7c36373217b8e92cf227c71999a0ce9a15d9 (diff) | |
download | PeerTube-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.js | 6 |
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 | |||
30 | const updateWeight = program.update !== undefined ? parseInt(program.update) : 4 | 30 | const updateWeight = program.update !== undefined ? parseInt(program.update) : 4 |
31 | const flushAtExit = program.flush || false | 31 | const flushAtExit = program.flush || false |
32 | const actionInterval = program.action !== undefined ? parseInt(program.action) : 500 | 32 | const actionInterval = program.action !== undefined ? parseInt(program.action) : 500 |
33 | let integrityInterval = program.integrity !== undefined ? parseInt(program.integrity) : 60000 | 33 | const integrityInterval = program.integrity !== undefined ? parseInt(program.integrity) : 60000 |
34 | const displayDiffOnFail = program.integrity || false | 34 | const displayDiffOnFail = program.integrity || false |
35 | 35 | ||
36 | const numberOfPods = 6 | 36 | const numberOfPods = 6 |
37 | 37 | ||
38 | // Wait requests between pods | 38 | // Wait requests between pods |
39 | const baseRequestInterval = integrityInterval < constants.REQUESTS_INTERVAL ? integrityInterval : constants.REQUESTS_INTERVAL | 39 | const baseRequestInterval = integrityInterval < constants.REQUESTS_INTERVAL ? constants.REQUESTS_INTERVAL : integrityInterval |
40 | const requestsMaxPerInterval = baseRequestInterval / actionInterval | 40 | const requestsMaxPerInterval = baseRequestInterval / actionInterval |
41 | const intervalsToMakeAllRequests = Math.ceil(requestsMaxPerInterval / constants.REQUESTS_LIMIT_PER_POD) | 41 | const intervalsToMakeAllRequests = Math.ceil(requestsMaxPerInterval / constants.REQUESTS_LIMIT_PER_POD) |
42 | const waitForBeforeIntegrityCheck = (intervalsToMakeAllRequests * constants.REQUESTS_INTERVAL) + 1000 | 42 | const waitForBeforeIntegrityCheck = (intervalsToMakeAllRequests * constants.REQUESTS_INTERVAL) - integrityInterval + 1000 |
43 | 43 | ||
44 | console.log('Create weight: %d, update weight: %d, remove weight: %d.', createWeight, updateWeight, removeWeight) | 44 | console.log('Create weight: %d, update weight: %d, remove weight: %d.', createWeight, updateWeight, removeWeight) |
45 | if (flushAtExit) { | 45 | if (flushAtExit) { |