diff options
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) { |