Merge branch 'Chocobozzz:develop' into feature/Remember-user-table-pagination-in-admin

This commit is contained in:
Wicklow 2023-10-18 14:42:10 +00:00 committed by GitHub
commit 75af196702
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 18 additions and 23 deletions

View File

@ -23,7 +23,7 @@ describe('Test AP cleaner', function () {
let videoUUIDs: string[]
before(async function () {
this.timeout(120000)
this.timeout(240000)
const config = {
federation: {

View File

@ -21,7 +21,7 @@ describe('Test abuses', function () {
let commands: AbusesCommand[]
before(async function () {
this.timeout(50000)
this.timeout(120000)
// Run servers
servers = await createMultipleServers(2)

View File

@ -234,7 +234,7 @@ describe('Test video transcoding', function () {
describe('Audio transcoding', function () {
it('Should transcode high bit rate mp3 to proper bit rate', async function () {
this.timeout(60_000)
this.timeout(120_000)
const attributes = {
name: 'mp3_256k',
@ -266,7 +266,7 @@ describe('Test video transcoding', function () {
})
it('Should transcode video with no audio and have no audio itself', async function () {
this.timeout(60_000)
this.timeout(120_000)
const attributes = {
name: 'no_audio',
@ -290,7 +290,7 @@ describe('Test video transcoding', function () {
})
it('Should leave the audio untouched, but properly transcode the video', async function () {
this.timeout(60_000)
this.timeout(120_000)
const attributes = {
name: 'untouched_audio',

View File

@ -523,7 +523,7 @@ describe('Test video channels', function () {
})
it('Should list channels by updatedAt desc if a video has been uploaded', async function () {
this.timeout(30000)
this.timeout(60000)
await servers[0].videos.upload({ attributes: { channelId: totoChannel } })
await waitJobs(servers)

View File

@ -537,7 +537,7 @@ describe('Test video playlists', function () {
describe('Element timestamps', function () {
it('Should create a playlist containing different startTimestamp/endTimestamp videos', async function () {
this.timeout(30000)
this.timeout(120000)
const addVideo = (attributes: any) => {
return commands[0].addElement({ playlistId: playlistServer1Id, attributes })

View File

@ -26,7 +26,7 @@ describe('Test a video file replacement', function () {
let uuid: string
before(async function () {
this.timeout(50000)
this.timeout(120000)
servers = await createMultipleServers(2)
@ -111,7 +111,7 @@ describe('Test a video file replacement', function () {
})
it('Should replace a video file with transcoding enabled', async function () {
this.timeout(120000)
this.timeout(240000)
const previousPaths: string[] = []
@ -384,7 +384,7 @@ describe('Test a video file replacement', function () {
})
it('Should replace a video file with transcoding enabled', async function () {
this.timeout(120000)
this.timeout(240000)
const previousPaths: string[] = []

View File

@ -139,7 +139,7 @@ describe('Test video storyboard', function () {
})
it('Should generate a storyboard after torrent import', async function () {
this.timeout(120000)
this.timeout(240000)
if (areHttpImportTestsDisabled()) return

View File

@ -35,17 +35,8 @@ async function prepareViewsServers () {
await setAccessTokensToServers(servers)
await setDefaultVideoChannel(servers)
await servers[0].config.updateCustomSubConfig({
newConfig: {
live: {
enabled: true,
allowReplay: true,
transcoding: {
enabled: false
}
}
}
})
await servers[0].config.enableMinimumTranscoding()
await servers[0].config.enableLive({ allowReplay: true, transcoding: false })
await doubleFollow(servers[0], servers[1])

View File

@ -418,7 +418,11 @@ class JobQueue {
continue
}
const jobs = await queue.getJobs(states, 0, start + count, asc)
let jobs = await queue.getJobs(states, 0, start + count, asc)
// FIXME: we have sometimes undefined values https://github.com/taskforcesh/bullmq/issues/248
jobs = jobs.filter(j => !!j)
results = results.concat(jobs)
}