import 'mocha'
import * as chai from 'chai'
+import { wait } from '@shared/core-utils'
import { LiveVideoCreate, VideoPrivacy, VideoState } from '@shared/models'
import {
cleanupTests,
setAccessTokensToServers,
setDefaultVideoChannel,
stopFfmpeg,
- wait,
waitJobs
-} from '../../../../shared/extra-utils'
+} from '@shared/server-commands'
const expect = chai.expect
await waitJobs(servers)
})
- it('Should not have cleaned up this live', async function () {
+ it('Should have cleaned up this live', async function () {
this.timeout(40000)
await wait(5000)
for (const server of servers) {
const videoDetails = await server.videos.get({ id: videoUUID })
- expect(videoDetails.streamingPlaylists).to.have.lengthOf(1)
+
+ expect(videoDetails.streamingPlaylists).to.have.lengthOf(0)
}
})
})
it('Should be able to stream again in the permanent live', async function () {
- this.timeout(20000)
+ this.timeout(60000)
await servers[0].config.updateCustomSubConfig({
newConfig: {