+ await stopFfmpeg(ffmpegCommand)
+ })
+
+ it('Should have appropriate sessions', async function () {
+ this.timeout(60000)
+
+ await servers[0].live.waitUntilWaiting({ videoId: videoUUID })
+
+ const { data, total } = await servers[0].live.listSessions({ videoId: videoUUID })
+ expect(total).to.equal(2)
+ expect(data).to.have.lengthOf(2)
+
+ for (const session of data) {
+ expect(session.startDate).to.exist
+ expect(session.endDate).to.exist
+
+ expect(session.error).to.not.exist
+ }
+ })
+
+ it('Should remove the live and have cleaned up the directory', async function () {
+ this.timeout(60000)
+
+ await servers[0].videos.remove({ id: videoUUID })
+ await waitJobs(servers)
+
+ await checkLiveCleanup({ server: servers[0], permanent: true, videoUUID })