aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/multiple-pods.js
diff options
context:
space:
mode:
authorGreen-Star <Green-Star@users.noreply.github.com>2017-07-02 20:48:31 +0200
committerBigard Florian <florian.bigard@gmail.com>2017-07-02 20:48:31 +0200
commit5fe7e898316e18369c3e1aba307b55077adc7bfb (patch)
tree1ea859558b44250dce43be1be7261c2e79df454b /server/tests/api/multiple-pods.js
parentba44fa19531186944fef3e9da34f5e91f0c0dedb (diff)
downloadPeerTube-5fe7e898316e18369c3e1aba307b55077adc7bfb.tar.gz
PeerTube-5fe7e898316e18369c3e1aba307b55077adc7bfb.tar.zst
PeerTube-5fe7e898316e18369c3e1aba307b55077adc7bfb.zip
Fix test (#71)
* Fix timeouting tests * Increase timeout to be sure requests will be propagated * Add timeout to be sure video views will be updated * Use standard style * Fix PR comments.
Diffstat (limited to 'server/tests/api/multiple-pods.js')
-rw-r--r--server/tests/api/multiple-pods.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/tests/api/multiple-pods.js b/server/tests/api/multiple-pods.js
index c1b5fc9f5..c3ee77f0c 100644
--- a/server/tests/api/multiple-pods.js
+++ b/server/tests/api/multiple-pods.js
@@ -22,7 +22,7 @@ describe('Test multiple pods', function () {
22 const toRemove = [] 22 const toRemove = []
23 23
24 before(function (done) { 24 before(function (done) {
25 this.timeout(30000) 25 this.timeout(120000)
26 26
27 series([ 27 series([
28 // Run servers 28 // Run servers
@@ -230,7 +230,7 @@ describe('Test multiple pods', function () {
230 }) 230 })
231 231
232 it('Should upload two videos on pod 3 and propagate on each pod', function (done) { 232 it('Should upload two videos on pod 3 and propagate on each pod', function (done) {
233 this.timeout(30000) 233 this.timeout(45000)
234 234
235 series([ 235 series([
236 function (next) { 236 function (next) {
@@ -260,7 +260,7 @@ describe('Test multiple pods', function () {
260 videosUtils.uploadVideo(servers[2].url, servers[2].accessToken, videoAttributes, next) 260 videosUtils.uploadVideo(servers[2].url, servers[2].accessToken, videoAttributes, next)
261 }, 261 },
262 function (next) { 262 function (next) {
263 setTimeout(next, 22000) 263 setTimeout(next, 33000)
264 }], 264 }],
265 function (err) { 265 function (err) {
266 if (err) throw err 266 if (err) throw err