1
0
Fork 0
This commit is contained in:
Chocobozzz 2022-04-22 10:54:05 +02:00
parent 961cbe4269
commit 5d9b867ed3
No known key found for this signature in database
GPG key ID: 583A612D890159BE
3 changed files with 5 additions and 6 deletions

View file

@ -2,7 +2,7 @@ import { AllowNull, BelongsTo, Column, CreatedAt, DataType, DefaultScope, Foreig
import { CONFIG } from '@server/initializers/config'
import { WEBSERVER } from '@server/initializers/constants'
import { MVideoLive, MVideoLiveVideo } from '@server/types/models'
import { LiveVideo, LiveVideoLatencyMode, VideoPrivacy, VideoState } from '@shared/models'
import { LiveVideo, LiveVideoLatencyMode, VideoState } from '@shared/models'
import { AttributesOnly } from '@shared/typescript-utils'
import { VideoModel } from './video'
import { VideoBlacklistModel } from './video-blacklist'

View file

@ -341,7 +341,6 @@ describe('Test video lives API validator', function () {
describe('When getting live information', function () {
it('Should fail with a bad access token', async function () {
await command.get({ token: 'toto', videoId: video.id, expectedStatus: HttpStatusCode.UNAUTHORIZED_401 })
})

View file

@ -131,8 +131,8 @@ describe('Test live', function () {
expect(live.rtmpUrl).to.equal('rtmp://' + server.hostname + ':' + servers[0].rtmpPort + '/live')
expect(live.streamKey).to.not.be.empty
} else {
expect(live.rtmpUrl).to.be.null
expect(live.streamKey).to.be.null
expect(live.rtmpUrl).to.not.exist
expect(live.streamKey).to.not.exist
}
expect(live.saveReplay).to.be.true
@ -193,8 +193,8 @@ describe('Test live', function () {
expect(live.rtmpUrl).to.equal('rtmp://' + server.hostname + ':' + servers[0].rtmpPort + '/live')
expect(live.streamKey).to.not.be.empty
} else {
expect(live.rtmpUrl).to.be.null
expect(live.streamKey).to.be.null
expect(live.rtmpUrl).to.not.exist
expect(live.streamKey).to.not.exist
}
expect(live.saveReplay).to.be.false