]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/api/server/config.ts
Try to fix live test
[github/Chocobozzz/PeerTube.git] / server / tests / api / server / config.ts
index 6c37be11377475b9c8f49839725411ae80ab8bd3..c4dcfd96c246fd3a8611850e8e634be5f3337c0c 100644 (file)
@@ -79,7 +79,7 @@ function checkInitialConfig (server: ServerInfo, data: CustomConfig) {
   expect(data.transcoding.hls.enabled).to.be.true
 
   expect(data.live.enabled).to.be.false
-  expect(data.live.allowReplay).to.be.true
+  expect(data.live.allowReplay).to.be.false
   expect(data.live.maxDuration).to.equal(1000 * 3600 * 5)
   expect(data.live.maxInstanceLives).to.equal(20)
   expect(data.live.maxUserLives).to.equal(3)
@@ -166,7 +166,7 @@ function checkUpdatedConfig (data: CustomConfig) {
   expect(data.transcoding.webtorrent.enabled).to.be.true
 
   expect(data.live.enabled).to.be.true
-  expect(data.live.allowReplay).to.be.false
+  expect(data.live.allowReplay).to.be.true
   expect(data.live.maxDuration).to.equal(5000)
   expect(data.live.maxInstanceLives).to.equal(-1)
   expect(data.live.maxUserLives).to.equal(10)
@@ -332,7 +332,7 @@ describe('Test config', function () {
       },
       live: {
         enabled: true,
-        allowReplay: false,
+        allowReplay: true,
         maxDuration: 5000,
         maxInstanceLives: -1,
         maxUserLives: 10,