ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix real world script
Chocobozzz56ac84d0a328
diff --git a/scripts/play.sh b/scripts/play.shindex 33dc1a5451..ab812025cd 100755--- a/scripts/play.sh+++ b/scripts/play.sh@@ -5,7 +5,9 @@ if [ ! -f server.js ]; thenexit -1fi-for i in 1 2 3; do+max=${1:-3}++for i in $(seq 1 $max); doNODE_ENV=test NODE_APP_INSTANCE=$i node server.js &sleep 1donediff --git a/server/tests/real-world/real-world.js b/server/tests/real-world/real-world.jsindex dba1970c58..2ae3dc15b7 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) || 60000const numberOfPods = 6// Wait requests between pods-const requestsMaxPerInterval = constants.INTERVAL / actionInterval+const requestsMaxPerInterval = constants.REQUESTS_INTERVAL / actionIntervalconst intervalsToMakeAllRequests = Math.ceil(requestsMaxPerInterval / constants.REQUESTS_LIMIT)-const waitForBeforeIntegrityCheck = (intervalsToMakeAllRequests * constants.INTERVAL) + 1000+const waitForBeforeIntegrityCheck = (intervalsToMakeAllRequests * constants.REQUESTS_INTERVAL) + 1000integrityInterval += 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)}}