aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-12-25 12:05:47 +0100
committerChocobozzz <florian.bigard@gmail.com>2016-12-25 12:05:47 +0100
commit56ac84d0a32844c7b7df4c584dccb6e6c17e35de (patch)
tree5cfa8d45762d0178318ec054ef943cdc7124218e /server
parenta25970cc20ad5d61b7ae4e94850f3e42c0359bcd (diff)
downloadPeerTube-56ac84d0a32844c7b7df4c584dccb6e6c17e35de.tar.gz
PeerTube-56ac84d0a32844c7b7df4c584dccb6e6c17e35de.tar.zst
PeerTube-56ac84d0a32844c7b7df4c584dccb6e6c17e35de.zip
Fix real world script
Diffstat (limited to 'server')
-rw-r--r--server/tests/real-world/real-world.js11
1 files changed, 6 insertions, 5 deletions
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
30 30
31const numberOfPods = 6 31const numberOfPods = 6
32// Wait requests between pods 32// Wait requests between pods
33const requestsMaxPerInterval = constants.INTERVAL / actionInterval 33const requestsMaxPerInterval = constants.REQUESTS_INTERVAL / actionInterval
34const intervalsToMakeAllRequests = Math.ceil(requestsMaxPerInterval / constants.REQUESTS_LIMIT) 34const intervalsToMakeAllRequests = Math.ceil(requestsMaxPerInterval / constants.REQUESTS_LIMIT)
35const waitForBeforeIntegrityCheck = (intervalsToMakeAllRequests * constants.INTERVAL) + 1000 35const waitForBeforeIntegrityCheck = (intervalsToMakeAllRequests * constants.REQUESTS_INTERVAL) + 1000
36 36
37integrityInterval += waitForBeforeIntegrityCheck 37integrityInterval += waitForBeforeIntegrityCheck
38 38
@@ -160,9 +160,9 @@ function exitServers (servers, callback) {
160function upload (servers, numServer, callback) { 160function upload (servers, numServer, callback) {
161 if (!callback) callback = function () {} 161 if (!callback) callback = function () {}
162 162
163 const name = 'my super name for pod 1' 163 const name = Date.now() + ' name'
164 const description = 'my super description for pod 1' 164 const description = Date.now() + ' description'
165 const tags = [ 'tag1p1', 'tag2p1' ] 165 const tags = [ Date.now().toString().substring(0, 5) + 't1', Date.now().toString().substring(0, 5) + 't2' ]
166 const file = 'video_short1.webm' 166 const file = 'video_short1.webm'
167 167
168 console.log('Upload video to server ' + numServer) 168 console.log('Upload video to server ' + numServer)
@@ -205,6 +205,7 @@ function checkIntegrity (servers, callback) {
205 for (const video of videos) { 205 for (const video of videos) {
206 if (!isEqual(video, videos[0])) { 206 if (!isEqual(video, videos[0])) {
207 console.error('Integrity not ok!') 207 console.error('Integrity not ok!')
208
208 process.exit(-1) 209 process.exit(-1)
209 } 210 }
210 } 211 }