Increase tests timeout
This commit is contained in:
parent
75d5a23dbc
commit
ea01bf0167
8 changed files with 32 additions and 32 deletions
|
@ -19,7 +19,7 @@ describe('Test videos chapters API validator', function () {
|
|||
// ---------------------------------------------------------------
|
||||
|
||||
before(async function () {
|
||||
this.timeout(30000)
|
||||
this.timeout(60000)
|
||||
|
||||
server = await createSingleServer(1)
|
||||
|
||||
|
|
|
@ -199,7 +199,7 @@ describe('Test video studio API validator', function () {
|
|||
})
|
||||
|
||||
it('Should fail with a video that is already waiting for edition', async function () {
|
||||
this.timeout(120000)
|
||||
this.timeout(360000)
|
||||
|
||||
await command.createEditionTasks({
|
||||
videoId: videoUUID,
|
||||
|
@ -257,7 +257,7 @@ describe('Test video studio API validator', function () {
|
|||
})
|
||||
|
||||
it('Should succeed with the correct params', async function () {
|
||||
this.timeout(120000)
|
||||
this.timeout(360000)
|
||||
|
||||
await cut(0, 2, HttpStatusCode.NO_CONTENT_204)
|
||||
|
||||
|
@ -291,7 +291,7 @@ describe('Test video studio API validator', function () {
|
|||
})
|
||||
|
||||
it('Should succeed with the correct params', async function () {
|
||||
this.timeout(120000)
|
||||
this.timeout(360000)
|
||||
|
||||
await addWatermark('custom-thumbnail.jpg', HttpStatusCode.NO_CONTENT_204)
|
||||
|
||||
|
@ -337,7 +337,7 @@ describe('Test video studio API validator', function () {
|
|||
})
|
||||
|
||||
it('Should succeed with the correct params', async function () {
|
||||
this.timeout(120000)
|
||||
this.timeout(360000)
|
||||
|
||||
await addIntroOutro('add-intro', 'video_very_short_240p.mp4', HttpStatusCode.NO_CONTENT_204)
|
||||
await waitJobs([ server ])
|
||||
|
@ -347,7 +347,7 @@ describe('Test video studio API validator', function () {
|
|||
})
|
||||
|
||||
it('Should check total quota when creating the task', async function () {
|
||||
this.timeout(120000)
|
||||
this.timeout(360000)
|
||||
|
||||
const user = await server.users.create({ username: 'user_quota_1' })
|
||||
const token = await server.login.getAccessToken('user_quota_1')
|
||||
|
|
|
@ -66,7 +66,7 @@ describe('Test admin notifications', function () {
|
|||
|
||||
joinPeerTubeServer.setLatestVersion('1.4.2')
|
||||
|
||||
await wait(3000)
|
||||
await wait(4500)
|
||||
await checkNewPeerTubeVersion({ ...baseParams, latestVersion: '1.4.2', checkType: 'absence' })
|
||||
})
|
||||
|
||||
|
@ -75,14 +75,14 @@ describe('Test admin notifications', function () {
|
|||
|
||||
joinPeerTubeServer.setLatestVersion('15.4.2')
|
||||
|
||||
await wait(3000)
|
||||
await wait(4500)
|
||||
await checkNewPeerTubeVersion({ ...baseParams, latestVersion: '15.4.2', checkType: 'presence' })
|
||||
})
|
||||
|
||||
it('Should not send the same notification to admins', async function () {
|
||||
this.timeout(30000)
|
||||
|
||||
await wait(3000)
|
||||
await wait(4500)
|
||||
expect(adminNotifications.filter(n => n.type === UserNotificationType.NEW_PEERTUBE_VERSION)).to.have.lengthOf(1)
|
||||
})
|
||||
|
||||
|
@ -97,7 +97,7 @@ describe('Test admin notifications', function () {
|
|||
|
||||
joinPeerTubeServer.setLatestVersion('15.4.3')
|
||||
|
||||
await wait(3000)
|
||||
await wait(4500)
|
||||
await checkNewPeerTubeVersion({ ...baseParams, latestVersion: '15.4.3', checkType: 'presence' })
|
||||
expect(adminNotifications.filter(n => n.type === UserNotificationType.NEW_PEERTUBE_VERSION)).to.have.lengthOf(2)
|
||||
})
|
||||
|
|
|
@ -39,7 +39,7 @@ describe('Test comments notifications', function () {
|
|||
})
|
||||
|
||||
it('Should not send a new comment notification after a comment on another video', async function () {
|
||||
this.timeout(30000)
|
||||
this.timeout(60000)
|
||||
|
||||
const { uuid, shortUUID } = await servers[0].videos.upload({ attributes: { name: 'super video' } })
|
||||
|
||||
|
@ -51,7 +51,7 @@ describe('Test comments notifications', function () {
|
|||
})
|
||||
|
||||
it('Should not send a new comment notification if I comment my own video', async function () {
|
||||
this.timeout(30000)
|
||||
this.timeout(60000)
|
||||
|
||||
const { uuid, shortUUID } = await servers[0].videos.upload({ token: userToken, attributes: { name: 'super video' } })
|
||||
|
||||
|
@ -63,7 +63,7 @@ describe('Test comments notifications', function () {
|
|||
})
|
||||
|
||||
it('Should not send a new comment notification if the account is muted', async function () {
|
||||
this.timeout(30000)
|
||||
this.timeout(60000)
|
||||
|
||||
await servers[0].blocklist.addToMyBlocklist({ token: userToken, account: 'root' })
|
||||
|
||||
|
@ -79,7 +79,7 @@ describe('Test comments notifications', function () {
|
|||
})
|
||||
|
||||
it('Should send a new comment notification after a local comment on my video', async function () {
|
||||
this.timeout(30000)
|
||||
this.timeout(60000)
|
||||
|
||||
const { uuid, shortUUID } = await servers[0].videos.upload({ token: userToken, attributes: { name: 'super video' } })
|
||||
|
||||
|
@ -91,7 +91,7 @@ describe('Test comments notifications', function () {
|
|||
})
|
||||
|
||||
it('Should send a new comment notification after a remote comment on my video', async function () {
|
||||
this.timeout(30000)
|
||||
this.timeout(60000)
|
||||
|
||||
const { uuid, shortUUID } = await servers[0].videos.upload({ token: userToken, attributes: { name: 'super video' } })
|
||||
|
||||
|
@ -109,7 +109,7 @@ describe('Test comments notifications', function () {
|
|||
})
|
||||
|
||||
it('Should send a new comment notification after a local reply on my video', async function () {
|
||||
this.timeout(30000)
|
||||
this.timeout(60000)
|
||||
|
||||
const { uuid, shortUUID } = await servers[0].videos.upload({ token: userToken, attributes: { name: 'super video' } })
|
||||
|
||||
|
@ -122,7 +122,7 @@ describe('Test comments notifications', function () {
|
|||
})
|
||||
|
||||
it('Should send a new comment notification after a remote reply on my video', async function () {
|
||||
this.timeout(30000)
|
||||
this.timeout(60000)
|
||||
|
||||
const { uuid, shortUUID } = await servers[0].videos.upload({ token: userToken, attributes: { name: 'super video' } })
|
||||
await waitJobs(servers)
|
||||
|
@ -148,7 +148,7 @@ describe('Test comments notifications', function () {
|
|||
})
|
||||
|
||||
it('Should convert markdown in comment to html', async function () {
|
||||
this.timeout(30000)
|
||||
this.timeout(60000)
|
||||
|
||||
const { uuid } = await servers[0].videos.upload({ token: userToken, attributes: { name: 'cool video' } })
|
||||
|
||||
|
@ -178,7 +178,7 @@ describe('Test comments notifications', function () {
|
|||
})
|
||||
|
||||
it('Should not send a new mention comment notification if I mention the video owner', async function () {
|
||||
this.timeout(30000)
|
||||
this.timeout(60000)
|
||||
|
||||
const { uuid, shortUUID } = await servers[0].videos.upload({ token: userToken, attributes: { name: 'super video' } })
|
||||
|
||||
|
@ -189,7 +189,7 @@ describe('Test comments notifications', function () {
|
|||
})
|
||||
|
||||
it('Should not send a new mention comment notification if I mention myself', async function () {
|
||||
this.timeout(30000)
|
||||
this.timeout(60000)
|
||||
|
||||
const { uuid, shortUUID } = await servers[0].videos.upload({ attributes: { name: 'super video' } })
|
||||
|
||||
|
@ -200,7 +200,7 @@ describe('Test comments notifications', function () {
|
|||
})
|
||||
|
||||
it('Should not send a new mention notification if the account is muted', async function () {
|
||||
this.timeout(30000)
|
||||
this.timeout(60000)
|
||||
|
||||
await servers[0].blocklist.addToMyBlocklist({ token: userToken, account: 'root' })
|
||||
|
||||
|
@ -215,7 +215,7 @@ describe('Test comments notifications', function () {
|
|||
})
|
||||
|
||||
it('Should not send a new mention notification if the remote account mention a local account', async function () {
|
||||
this.timeout(30000)
|
||||
this.timeout(60000)
|
||||
|
||||
const { uuid, shortUUID } = await servers[0].videos.upload({ attributes: { name: 'super video' } })
|
||||
|
||||
|
@ -229,7 +229,7 @@ describe('Test comments notifications', function () {
|
|||
})
|
||||
|
||||
it('Should send a new mention notification after local comments', async function () {
|
||||
this.timeout(30000)
|
||||
this.timeout(60000)
|
||||
|
||||
const { uuid, shortUUID } = await servers[0].videos.upload({ attributes: { name: 'super video' } })
|
||||
|
||||
|
@ -245,7 +245,7 @@ describe('Test comments notifications', function () {
|
|||
})
|
||||
|
||||
it('Should send a new mention notification after remote comments', async function () {
|
||||
this.timeout(30000)
|
||||
this.timeout(60000)
|
||||
|
||||
const { uuid, shortUUID } = await servers[0].videos.upload({ attributes: { name: 'super video' } })
|
||||
|
||||
|
@ -277,7 +277,7 @@ describe('Test comments notifications', function () {
|
|||
})
|
||||
|
||||
it('Should convert markdown in comment to html', async function () {
|
||||
this.timeout(30000)
|
||||
this.timeout(60000)
|
||||
|
||||
const { uuid } = await servers[0].videos.upload({ attributes: { name: 'super video' } })
|
||||
|
||||
|
|
|
@ -233,7 +233,7 @@ describe('Test user notifications', function () {
|
|||
})
|
||||
|
||||
it('Should not send a notification if the wait transcoding is false', async function () {
|
||||
this.timeout(100_000)
|
||||
this.timeout(240000)
|
||||
|
||||
await uploadRandomVideoOnServers(servers, 2, { waitTranscoding: false })
|
||||
await waitJobs(servers)
|
||||
|
@ -245,7 +245,7 @@ describe('Test user notifications', function () {
|
|||
})
|
||||
|
||||
it('Should send a notification even if the video is not transcoded in other resolutions', async function () {
|
||||
this.timeout(100_000)
|
||||
this.timeout(240000)
|
||||
|
||||
const { name, shortUUID } = await uploadRandomVideoOnServers(servers, 2, { waitTranscoding: true, fixture: 'video_short_240p.mp4' })
|
||||
await waitJobs(servers)
|
||||
|
@ -254,7 +254,7 @@ describe('Test user notifications', function () {
|
|||
})
|
||||
|
||||
it('Should send a notification with a transcoded video', async function () {
|
||||
this.timeout(100_000)
|
||||
this.timeout(240000)
|
||||
|
||||
const { name, shortUUID } = await uploadRandomVideoOnServers(servers, 2, { waitTranscoding: true })
|
||||
await waitJobs(servers)
|
||||
|
@ -263,7 +263,7 @@ describe('Test user notifications', function () {
|
|||
})
|
||||
|
||||
it('Should send a notification when an imported video is transcoded', async function () {
|
||||
this.timeout(120000)
|
||||
this.timeout(240000)
|
||||
|
||||
const name = 'video import ' + buildUUID()
|
||||
|
||||
|
|
|
@ -232,7 +232,7 @@ describe('Test stats (excluding redundancy)', function () {
|
|||
})
|
||||
|
||||
it('Should have the correct AP stats', async function () {
|
||||
this.timeout(120000)
|
||||
this.timeout(240000)
|
||||
|
||||
await servers[0].config.disableTranscoding()
|
||||
|
||||
|
|
|
@ -489,7 +489,7 @@ describe('Test video transcoding', function () {
|
|||
})
|
||||
|
||||
it('Should downscale to the closest divisor standard framerate', async function () {
|
||||
this.timeout(200_000)
|
||||
this.timeout(360_000)
|
||||
|
||||
let tempFixturePath: string
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@ describe('Test video playlists', function () {
|
|||
let commands: PlaylistsCommand[]
|
||||
|
||||
before(async function () {
|
||||
this.timeout(240000)
|
||||
this.timeout(360000)
|
||||
|
||||
servers = await createMultipleServers(3)
|
||||
|
||||
|
|
Loading…
Reference in a new issue