From 56ac84d0a32844c7b7df4c584dccb6e6c17e35de Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sun, 25 Dec 2016 12:05:47 +0100 Subject: Fix real world script --- server/tests/real-world/real-world.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'server/tests/real-world') diff --git a/server/tests/real-world/real-world.js b/server/tests/real-world/real-world.js index dba1970c5..2ae3dc15b 100644 --- a/server/tests/real-world/real-world.js +++ b/server/tests/real-world/real-world.js @@ -30,9 +30,9 @@ let integrityInterval = parseInt(program.integrity) || 60000 const numberOfPods = 6 // Wait requests between pods -const requestsMaxPerInterval = constants.INTERVAL / actionInterval +const requestsMaxPerInterval = constants.REQUESTS_INTERVAL / actionInterval const intervalsToMakeAllRequests = Math.ceil(requestsMaxPerInterval / constants.REQUESTS_LIMIT) -const waitForBeforeIntegrityCheck = (intervalsToMakeAllRequests * constants.INTERVAL) + 1000 +const waitForBeforeIntegrityCheck = (intervalsToMakeAllRequests * constants.REQUESTS_INTERVAL) + 1000 integrityInterval += waitForBeforeIntegrityCheck @@ -160,9 +160,9 @@ function exitServers (servers, callback) { function upload (servers, numServer, callback) { if (!callback) callback = function () {} - const name = 'my super name for pod 1' - const description = 'my super description for pod 1' - const tags = [ 'tag1p1', 'tag2p1' ] + const name = Date.now() + ' name' + const description = Date.now() + ' description' + const tags = [ Date.now().toString().substring(0, 5) + 't1', Date.now().toString().substring(0, 5) + 't2' ] const file = 'video_short1.webm' console.log('Upload video to server ' + numServer) @@ -205,6 +205,7 @@ function checkIntegrity (servers, callback) { for (const video of videos) { if (!isEqual(video, videos[0])) { console.error('Integrity not ok!') + process.exit(-1) } } -- cgit v1.2.3