aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/videos
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-05-15 11:41:43 +0200
committerChocobozzz <me@florianbigard.com>2023-05-15 11:41:55 +0200
commit339d3fba832daa916f497543b8e03f2fb5ffe12b (patch)
treecf7031509955a66cf1f5a3c5c74a76a0f13a88f0 /server/tests/api/videos
parentbe3ec61a6669cd96cc797c7a7a53105179213f69 (diff)
downloadPeerTube-339d3fba832daa916f497543b8e03f2fb5ffe12b.tar.gz
PeerTube-339d3fba832daa916f497543b8e03f2fb5ffe12b.tar.zst
PeerTube-339d3fba832daa916f497543b8e03f2fb5ffe12b.zip
Allow to retry some tests that may fail
Diffstat (limited to 'server/tests/api/videos')
-rw-r--r--server/tests/api/videos/multiple-servers.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/tests/api/videos/multiple-servers.ts b/server/tests/api/videos/multiple-servers.ts
index a52a04e07..9d89577cc 100644
--- a/server/tests/api/videos/multiple-servers.ts
+++ b/server/tests/api/videos/multiple-servers.ts
@@ -398,7 +398,9 @@ describe('Test multiple servers', function () {
398 }) 398 })
399 399
400 describe('Should seed the uploaded video', function () { 400 describe('Should seed the uploaded video', function () {
401
401 it('Should add the file 1 by asking server 3', async function () { 402 it('Should add the file 1 by asking server 3', async function () {
403 this.retries(2)
402 this.timeout(30000) 404 this.timeout(30000)
403 405
404 const { data } = await servers[2].videos.list() 406 const { data } = await servers[2].videos.list()
@@ -413,6 +415,7 @@ describe('Test multiple servers', function () {
413 }) 415 })
414 416
415 it('Should add the file 2 by asking server 1', async function () { 417 it('Should add the file 2 by asking server 1', async function () {
418 this.retries(2)
416 this.timeout(30000) 419 this.timeout(30000)
417 420
418 const { data } = await servers[0].videos.list() 421 const { data } = await servers[0].videos.list()
@@ -424,6 +427,7 @@ describe('Test multiple servers', function () {
424 }) 427 })
425 428
426 it('Should add the file 3 by asking server 2', async function () { 429 it('Should add the file 3 by asking server 2', async function () {
430 this.retries(2)
427 this.timeout(30000) 431 this.timeout(30000)
428 432
429 const { data } = await servers[1].videos.list() 433 const { data } = await servers[1].videos.list()