import * as chai from 'chai'
import { basename, join } from 'path'
import { ffprobePromise, getVideoStream } from '@server/helpers/ffmpeg'
-import { checkLiveCleanupAfterSave, checkLiveSegmentHash, checkResolutionsInMasterPlaylist, testImage } from '@server/tests/shared'
+import { checkLiveCleanup, checkLiveSegmentHash, checkResolutionsInMasterPlaylist, testImage } from '@server/tests/shared'
import { wait } from '@shared/core-utils'
import {
HttpStatusCode,
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
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
it('Should correctly have cleaned up the live files', async function () {
this.timeout(30000)
- await checkLiveCleanupAfterSave(servers[0], liveVideoId, [ 240, 360, 720 ])
+ await checkLiveCleanup(servers[0], liveVideoId, [ 240, 360, 720 ])
})
})