mirror of https://github.com/Chocobozzz/PeerTube
Add retries to travis mocha
parent
c9e3eeedad
commit
24163420dd
|
@ -6,5 +6,5 @@ checkParamFiles=$(find server/tests/api/check-params -type f | grep -v index.ts
|
||||||
notificationsFiles=$(find server/tests/api/notifications -type f | grep -v index.ts | xargs echo)
|
notificationsFiles=$(find server/tests/api/notifications -type f | grep -v index.ts | xargs echo)
|
||||||
searchFiles=$(find server/tests/api/search -type f | grep -v index.ts | xargs echo)
|
searchFiles=$(find server/tests/api/search -type f | grep -v index.ts | xargs echo)
|
||||||
|
|
||||||
MOCHA_PARALLEL=true mocha --timeout 5000 --exit --require ts-node/register --bail \
|
MOCHA_PARALLEL=true mocha --timeout 5000 --retries 3 --exit --require ts-node/register --bail \
|
||||||
$notificationsFiles $searchFiles $checkParamFiles
|
$notificationsFiles $searchFiles $checkParamFiles
|
||||||
|
|
|
@ -5,5 +5,5 @@ set -eu
|
||||||
serverFiles=$(find server/tests/api/server -type f | grep -v index.ts | xargs echo)
|
serverFiles=$(find server/tests/api/server -type f | grep -v index.ts | xargs echo)
|
||||||
usersFiles=$(find server/tests/api/users -type f | grep -v index.ts | xargs echo)
|
usersFiles=$(find server/tests/api/users -type f | grep -v index.ts | xargs echo)
|
||||||
|
|
||||||
MOCHA_PARALLEL=true mocha --timeout 5000 --exit --require ts-node/register --bail \
|
MOCHA_PARALLEL=true mocha --timeout 5000 --retries 3 --exit --require ts-node/register --bail \
|
||||||
$serverFiles $usersFiles
|
$serverFiles $usersFiles
|
||||||
|
|
|
@ -4,5 +4,5 @@ set -eu
|
||||||
|
|
||||||
videosFiles=$(find server/tests/api/videos -type f | grep -v index.ts | xargs echo)
|
videosFiles=$(find server/tests/api/videos -type f | grep -v index.ts | xargs echo)
|
||||||
|
|
||||||
MOCHA_PARALLEL=true mocha --timeout 5000 --exit --require ts-node/register --bail \
|
MOCHA_PARALLEL=true mocha --timeout 5000 --retries 3 --exit --require ts-node/register --bail \
|
||||||
$videosFiles
|
$videosFiles
|
||||||
|
|
|
@ -5,5 +5,5 @@ set -eu
|
||||||
redundancyFiles=$(find server/tests/api/redundancy -type f | grep -v index.ts | xargs echo)
|
redundancyFiles=$(find server/tests/api/redundancy -type f | grep -v index.ts | xargs echo)
|
||||||
activitypubFiles=$(find server/tests/api/activitypub -type f | grep -v index.ts | xargs echo)
|
activitypubFiles=$(find server/tests/api/activitypub -type f | grep -v index.ts | xargs echo)
|
||||||
|
|
||||||
MOCHA_PARALLEL=true mocha-parallel-tests --max-parallel $1 --timeout 5000 --exit --require ts-node/register --bail \
|
MOCHA_PARALLEL=true mocha-parallel-tests --max-parallel $1 --timeout 5000 --retries 3 --exit --require ts-node/register --bail \
|
||||||
$redundancyFiles $activitypubFiles
|
$redundancyFiles $activitypubFiles
|
||||||
|
|
|
@ -533,7 +533,7 @@ describe('Test multiple servers', function () {
|
||||||
})
|
})
|
||||||
|
|
||||||
it('Should view multiple videos on each servers', async function () {
|
it('Should view multiple videos on each servers', async function () {
|
||||||
this.timeout(30000)
|
this.timeout(45000)
|
||||||
|
|
||||||
const tasks: Promise<any>[] = []
|
const tasks: Promise<any>[] = []
|
||||||
tasks.push(viewVideo(servers[0].url, remoteVideosServer1[0]))
|
tasks.push(viewVideo(servers[0].url, remoteVideosServer1[0]))
|
||||||
|
@ -552,7 +552,7 @@ describe('Test multiple servers', function () {
|
||||||
await waitJobs(servers)
|
await waitJobs(servers)
|
||||||
|
|
||||||
// Wait the repeatable job
|
// Wait the repeatable job
|
||||||
await wait(8000)
|
await wait(16000)
|
||||||
|
|
||||||
let baseVideos = null
|
let baseVideos = null
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue