Increase test timeouts

pull/5817/head
Chocobozzz 2023-05-11 16:33:30 +02:00
parent 85c20aaeb9
commit 5752683ea5
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
4 changed files with 23 additions and 22 deletions

View File

@ -121,7 +121,7 @@ describe('Test video studio API validator', function () {
})
it('Should fail with an already in transcoding state video', async function () {
this.timeout(30000)
this.timeout(60000)
const { uuid } = await server.videos.quickUpload({ name: 'transcoded video' })
await waitJobs([ server ])

View File

@ -164,7 +164,7 @@ describe('Save replay setting', function () {
})
it('Should correctly have updated the live and federated it when streaming in the live', async function () {
this.timeout(40000)
this.timeout(60000)
ffmpegCommand = await servers[0].live.sendRTMPStreamInVideo({ videoId: liveVideoUUID })
@ -179,7 +179,7 @@ describe('Save replay setting', function () {
})
it('Should correctly delete the video files after the stream ended', async function () {
this.timeout(40000)
this.timeout(60000)
sessionEndDateMin = new Date()
await stopFfmpeg(ffmpegCommand)
@ -241,7 +241,7 @@ describe('Save replay setting', function () {
})
it('Should correctly terminate the stream on delete and delete the video', async function () {
this.timeout(40000)
this.timeout(60000)
await publishLiveAndDelete({ permanent: false, replay: false })
@ -253,7 +253,7 @@ describe('Save replay setting', function () {
describe('With save replay enabled on non permanent live', function () {
it('Should correctly create and federate the "waiting for stream" live', async function () {
this.timeout(40000)
this.timeout(60000)
liveVideoUUID = await createLiveWrapper({ permanent: false, replay: true, replaySettings: { privacy: VideoPrivacy.UNLISTED } })
@ -265,7 +265,7 @@ describe('Save replay setting', function () {
})
it('Should correctly have updated the live and federated it when streaming in the live', async function () {
this.timeout(40000)
this.timeout(60000)
ffmpegCommand = await servers[0].live.sendRTMPStreamInVideo({ videoId: liveVideoUUID })
await waitUntilLivePublishedOnAllServers(servers, liveVideoUUID)
@ -278,7 +278,7 @@ describe('Save replay setting', function () {
})
it('Should correctly have saved the live and federated it after the streaming', async function () {
this.timeout(40000)
this.timeout(60000)
const session = await servers[0].live.findLatestSession({ videoId: liveVideoUUID })
expect(session.endDate).to.not.exist
@ -319,7 +319,7 @@ describe('Save replay setting', function () {
})
it('Should update the saved live and correctly federate the updated attributes', async function () {
this.timeout(40000)
this.timeout(60000)
await servers[0].videos.update({ id: liveVideoUUID, attributes: { name: 'video updated', privacy: VideoPrivacy.PUBLIC } })
await waitJobs(servers)
@ -352,7 +352,7 @@ describe('Save replay setting', function () {
})
it('Should correctly terminate the stream on delete and delete the video', async function () {
this.timeout(40000)
this.timeout(60000)
await publishLiveAndDelete({ permanent: false, replay: true, replaySettings: { privacy: VideoPrivacy.PUBLIC } })
@ -367,7 +367,7 @@ describe('Save replay setting', function () {
describe('With a first live and its replay', function () {
it('Should correctly create and federate the "waiting for stream" live', async function () {
this.timeout(40000)
this.timeout(60000)
liveVideoUUID = await createLiveWrapper({ permanent: true, replay: true, replaySettings: { privacy: VideoPrivacy.UNLISTED } })
@ -379,7 +379,7 @@ describe('Save replay setting', function () {
})
it('Should correctly have updated the live and federated it when streaming in the live', async function () {
this.timeout(40000)
this.timeout(60000)
ffmpegCommand = await servers[0].live.sendRTMPStreamInVideo({ videoId: liveVideoUUID })
await waitUntilLivePublishedOnAllServers(servers, liveVideoUUID)
@ -392,7 +392,7 @@ describe('Save replay setting', function () {
})
it('Should correctly have saved the live and federated it after the streaming', async function () {
this.timeout(40000)
this.timeout(60000)
const liveDetails = await servers[0].videos.get({ id: liveVideoUUID })
@ -457,7 +457,7 @@ describe('Save replay setting', function () {
})
it('Should correctly have updated the live and federated it when streaming in the live', async function () {
this.timeout(40000)
this.timeout(60000)
ffmpegCommand = await servers[0].live.sendRTMPStreamInVideo({ videoId: liveVideoUUID })
await waitUntilLivePublishedOnAllServers(servers, liveVideoUUID)
@ -470,7 +470,7 @@ describe('Save replay setting', function () {
})
it('Should correctly have saved the live and federated it after the streaming', async function () {
this.timeout(40000)
this.timeout(60000)
const liveDetails = await servers[0].videos.get({ id: liveVideoUUID })
@ -547,7 +547,7 @@ describe('Save replay setting', function () {
})
it('Should correctly terminate the stream on delete and not save the video', async function () {
this.timeout(40000)
this.timeout(60000)
const { liveDetails } = await publishLiveAndDelete({
permanent: true,

View File

@ -360,7 +360,7 @@ describe('Test follows', function () {
let video4: Video
before(async function () {
this.timeout(50000)
this.timeout(120000)
const video4Attributes = {
name: 'server3-4',

View File

@ -28,7 +28,7 @@ describe('Test logs', function () {
describe('With the standard log file', function () {
it('Should get logs with a start date', async function () {
this.timeout(20000)
this.timeout(60000)
await server.videos.upload({ attributes: { name: 'video 1' } })
await waitJobs([ server ])
@ -46,7 +46,7 @@ describe('Test logs', function () {
})
it('Should get logs with an end date', async function () {
this.timeout(30000)
this.timeout(60000)
await server.videos.upload({ attributes: { name: 'video 3' } })
await waitJobs([ server ])
@ -70,7 +70,7 @@ describe('Test logs', function () {
})
it('Should filter by level', async function () {
this.timeout(20000)
this.timeout(60000)
const now = new Date()
@ -127,7 +127,7 @@ describe('Test logs', function () {
})
it('Should not log ping requests', async function () {
this.timeout(30000)
this.timeout(60000)
await killallServers([ server ])
@ -145,8 +145,9 @@ describe('Test logs', function () {
})
describe('With the audit log', function () {
it('Should get logs with a start date', async function () {
this.timeout(20000)
this.timeout(60000)
await server.videos.upload({ attributes: { name: 'video 7' } })
await waitJobs([ server ])
@ -172,7 +173,7 @@ describe('Test logs', function () {
})
it('Should get logs with an end date', async function () {
this.timeout(30000)
this.timeout(60000)
await server.videos.upload({ attributes: { name: 'video 9' } })
await waitJobs([ server ])