ActivityPub-federated video streaming platform using P2P directly in your web browser
Try to fix travis build
Chocobozzz790e65fcf7a0
diff --git a/server/tests/api/multiple-pods.js b/server/tests/api/multiple-pods.jsindex 169a9f2e0d..df12ba0e95 100644--- a/server/tests/api/multiple-pods.js+++ b/server/tests/api/multiple-pods.js@@ -312,7 +312,7 @@ describe('Test multiple pods', function () {expect(torrent.files.length).to.equal(1)expect(torrent.files[0].path).to.exist.and.to.not.equal('')- webtorrent.remove(video.magnetUri, done)+ done()})})})@@ -331,7 +331,7 @@ describe('Test multiple pods', function () {expect(torrent.files.length).to.equal(1)expect(torrent.files[0].path).to.exist.and.to.not.equal('')- webtorrent.remove(video.magnetUri, done)+ done()})})})@@ -350,7 +350,7 @@ describe('Test multiple pods', function () {expect(torrent.files.length).to.equal(1)expect(torrent.files[0].path).to.exist.and.to.not.equal('')- webtorrent.remove(video.magnetUri, done)+ done()})})})@@ -369,7 +369,7 @@ describe('Test multiple pods', function () {expect(torrent.files.length).to.equal(1)expect(torrent.files[0].path).to.exist.and.to.not.equal('')- webtorrent.remove(video.magnetUri, done)+ done()})})})@@ -419,7 +419,7 @@ describe('Test multiple pods', function () {expect(torrent.files.length).to.equal(1)expect(torrent.files[0].path).to.exist.and.to.not.equal('')- webtorrent.remove(videoUpdated.magnetUri, callback)+ callback()})})})diff --git a/server/tests/api/single-pod.js b/server/tests/api/single-pod.jsindex 04b93fac7d..2ac83bbf41 100644--- a/server/tests/api/single-pod.js+++ b/server/tests/api/single-pod.js@@ -96,7 +96,7 @@ describe('Test a single pod', function () {expect(torrent.files.length).to.equal(1)expect(torrent.files[0].path).to.exist.and.to.not.equal('')- webtorrent.remove(video.magnetUri, done)+ done()})})})diff --git a/server/tests/real-world/real-world.js b/server/tests/real-world/real-world.jsindex 941e43a2e7..12ab06d6d4 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) : 4const updateWeight = program.update !== undefined ? parseInt(program.update) : 4const flushAtExit = program.flush || falseconst actionInterval = program.action !== undefined ? parseInt(program.action) : 500-let integrityInterval = program.integrity !== undefined ? parseInt(program.integrity) : 60000+const integrityInterval = program.integrity !== undefined ? parseInt(program.integrity) : 60000const displayDiffOnFail = program.integrity || falseconst numberOfPods = 6// Wait requests between pods-const baseRequestInterval = integrityInterval < constants.REQUESTS_INTERVAL ? integrityInterval : constants.REQUESTS_INTERVAL+const baseRequestInterval = integrityInterval < constants.REQUESTS_INTERVAL ? constants.REQUESTS_INTERVAL : integrityIntervalconst requestsMaxPerInterval = baseRequestInterval / actionIntervalconst intervalsToMakeAllRequests = Math.ceil(requestsMaxPerInterval / constants.REQUESTS_LIMIT_PER_POD)-const waitForBeforeIntegrityCheck = (intervalsToMakeAllRequests * constants.REQUESTS_INTERVAL) + 1000+const waitForBeforeIntegrityCheck = (intervalsToMakeAllRequests * constants.REQUESTS_INTERVAL) - integrityInterval + 1000console.log('Create weight: %d, update weight: %d, remove weight: %d.', createWeight, updateWeight, removeWeight)if (flushAtExit) {