1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-06 03:50:26 +02:00

Remove difficult to maintain config update method

This commit is contained in:
Chocobozzz 2024-03-28 09:10:36 +01:00
parent 5ef0430dfb
commit 817f754c22
No known key found for this signature in database
GPG key ID: 583A612D890159BE
41 changed files with 148 additions and 451 deletions

View file

@ -1,12 +1,11 @@
/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
import { expect } from 'chai'
import { wait } from '@peertube/peertube-core-utils'
import { LiveVideoError, UserVideoQuota, VideoPrivacy } from '@peertube/peertube-models'
import {
PeerTubeServer,
cleanupTests, createMultipleServers,
doubleFollow,
PeerTubeServer,
setAccessTokensToServers,
setDefaultVideoChannel,
stopFfmpeg,
@ -14,6 +13,7 @@ import {
waitUntilLiveReplacedByReplayOnAllServers,
waitUntilLiveWaitingOnAllServers
} from '@peertube/peertube-server-commands'
import { expect } from 'chai'
import { checkLiveCleanup } from '../../shared/live.js'
describe('Test live constraints', function () {
@ -65,17 +65,8 @@ describe('Test live constraints', function () {
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 })
{
const res = await servers[0].users.generate('user1')
@ -203,7 +194,7 @@ describe('Test live constraints', function () {
it('Should have max duration limit', async function () {
this.timeout(240000)
await servers[0].config.updateCustomSubConfig({
await servers[0].config.updateExistingConfig({
newConfig: {
live: {
enabled: true,