Merge branch 'Chocobozzz:develop' into feature/Remember-user-table-pagination-in-admin
This commit is contained in:
commit
75af196702
|
@ -23,7 +23,7 @@ describe('Test AP cleaner', function () {
|
||||||
let videoUUIDs: string[]
|
let videoUUIDs: string[]
|
||||||
|
|
||||||
before(async function () {
|
before(async function () {
|
||||||
this.timeout(120000)
|
this.timeout(240000)
|
||||||
|
|
||||||
const config = {
|
const config = {
|
||||||
federation: {
|
federation: {
|
||||||
|
|
|
@ -21,7 +21,7 @@ describe('Test abuses', function () {
|
||||||
let commands: AbusesCommand[]
|
let commands: AbusesCommand[]
|
||||||
|
|
||||||
before(async function () {
|
before(async function () {
|
||||||
this.timeout(50000)
|
this.timeout(120000)
|
||||||
|
|
||||||
// Run servers
|
// Run servers
|
||||||
servers = await createMultipleServers(2)
|
servers = await createMultipleServers(2)
|
||||||
|
|
|
@ -234,7 +234,7 @@ describe('Test video transcoding', function () {
|
||||||
describe('Audio transcoding', function () {
|
describe('Audio transcoding', function () {
|
||||||
|
|
||||||
it('Should transcode high bit rate mp3 to proper bit rate', async function () {
|
it('Should transcode high bit rate mp3 to proper bit rate', async function () {
|
||||||
this.timeout(60_000)
|
this.timeout(120_000)
|
||||||
|
|
||||||
const attributes = {
|
const attributes = {
|
||||||
name: 'mp3_256k',
|
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 () {
|
it('Should transcode video with no audio and have no audio itself', async function () {
|
||||||
this.timeout(60_000)
|
this.timeout(120_000)
|
||||||
|
|
||||||
const attributes = {
|
const attributes = {
|
||||||
name: 'no_audio',
|
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 () {
|
it('Should leave the audio untouched, but properly transcode the video', async function () {
|
||||||
this.timeout(60_000)
|
this.timeout(120_000)
|
||||||
|
|
||||||
const attributes = {
|
const attributes = {
|
||||||
name: 'untouched_audio',
|
name: 'untouched_audio',
|
||||||
|
|
|
@ -523,7 +523,7 @@ describe('Test video channels', function () {
|
||||||
})
|
})
|
||||||
|
|
||||||
it('Should list channels by updatedAt desc if a video has been uploaded', async 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 servers[0].videos.upload({ attributes: { channelId: totoChannel } })
|
||||||
await waitJobs(servers)
|
await waitJobs(servers)
|
||||||
|
|
|
@ -537,7 +537,7 @@ describe('Test video playlists', function () {
|
||||||
describe('Element timestamps', function () {
|
describe('Element timestamps', function () {
|
||||||
|
|
||||||
it('Should create a playlist containing different startTimestamp/endTimestamp videos', async function () {
|
it('Should create a playlist containing different startTimestamp/endTimestamp videos', async function () {
|
||||||
this.timeout(30000)
|
this.timeout(120000)
|
||||||
|
|
||||||
const addVideo = (attributes: any) => {
|
const addVideo = (attributes: any) => {
|
||||||
return commands[0].addElement({ playlistId: playlistServer1Id, attributes })
|
return commands[0].addElement({ playlistId: playlistServer1Id, attributes })
|
||||||
|
|
|
@ -26,7 +26,7 @@ describe('Test a video file replacement', function () {
|
||||||
let uuid: string
|
let uuid: string
|
||||||
|
|
||||||
before(async function () {
|
before(async function () {
|
||||||
this.timeout(50000)
|
this.timeout(120000)
|
||||||
|
|
||||||
servers = await createMultipleServers(2)
|
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 () {
|
it('Should replace a video file with transcoding enabled', async function () {
|
||||||
this.timeout(120000)
|
this.timeout(240000)
|
||||||
|
|
||||||
const previousPaths: string[] = []
|
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 () {
|
it('Should replace a video file with transcoding enabled', async function () {
|
||||||
this.timeout(120000)
|
this.timeout(240000)
|
||||||
|
|
||||||
const previousPaths: string[] = []
|
const previousPaths: string[] = []
|
||||||
|
|
||||||
|
|
|
@ -139,7 +139,7 @@ describe('Test video storyboard', function () {
|
||||||
})
|
})
|
||||||
|
|
||||||
it('Should generate a storyboard after torrent import', async function () {
|
it('Should generate a storyboard after torrent import', async function () {
|
||||||
this.timeout(120000)
|
this.timeout(240000)
|
||||||
|
|
||||||
if (areHttpImportTestsDisabled()) return
|
if (areHttpImportTestsDisabled()) return
|
||||||
|
|
||||||
|
|
|
@ -35,17 +35,8 @@ async function prepareViewsServers () {
|
||||||
await setAccessTokensToServers(servers)
|
await setAccessTokensToServers(servers)
|
||||||
await setDefaultVideoChannel(servers)
|
await setDefaultVideoChannel(servers)
|
||||||
|
|
||||||
await servers[0].config.updateCustomSubConfig({
|
await servers[0].config.enableMinimumTranscoding()
|
||||||
newConfig: {
|
await servers[0].config.enableLive({ allowReplay: true, transcoding: false })
|
||||||
live: {
|
|
||||||
enabled: true,
|
|
||||||
allowReplay: true,
|
|
||||||
transcoding: {
|
|
||||||
enabled: false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
await doubleFollow(servers[0], servers[1])
|
await doubleFollow(servers[0], servers[1])
|
||||||
|
|
||||||
|
|
|
@ -418,7 +418,11 @@ class JobQueue {
|
||||||
continue
|
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)
|
results = results.concat(jobs)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user