+
+ it('Should disable webtorrent, enable HLS, and update my quota', async function () {
+ this.timeout(60000)
+
+ {
+ const res = await getCustomConfig(server.url, server.accessToken)
+ const config = res.body as CustomConfig
+ config.transcoding.webtorrent.enabled = false
+ config.transcoding.hls.enabled = true
+ config.transcoding.enabled = true
+ await updateCustomSubConfig(server.url, server.accessToken, config)
+ }
+
+ {
+ const videoAttributes = {
+ name: 'super user video 2',
+ fixture: 'video_short.webm'
+ }
+ await uploadVideo(server.url, accessTokenUser, videoAttributes)
+
+ await waitJobs([ server ])
+ }
+
+ {
+ const res = await getMyUserVideoQuotaUsed(server.url, accessTokenUser)
+ const data = res.body
+
+ expect(data.videoQuotaUsed).to.be.greaterThan(220000)
+ }
+ })