aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/live/live-save-replay.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/live/live-save-replay.ts')
-rw-r--r--server/tests/api/live/live-save-replay.ts21
1 files changed, 11 insertions, 10 deletions
diff --git a/server/tests/api/live/live-save-replay.ts b/server/tests/api/live/live-save-replay.ts
index 3d4736c8f..e74bc3e8d 100644
--- a/server/tests/api/live/live-save-replay.ts
+++ b/server/tests/api/live/live-save-replay.ts
@@ -9,10 +9,10 @@ import {
9 addVideoToBlacklist, 9 addVideoToBlacklist,
10 checkLiveCleanup, 10 checkLiveCleanup,
11 cleanupTests, 11 cleanupTests,
12 ConfigCommand,
12 createLive, 13 createLive,
13 doubleFollow, 14 doubleFollow,
14 flushAndRunMultipleServers, 15 flushAndRunMultipleServers,
15 getCustomConfigResolutions,
16 getVideo, 16 getVideo,
17 getVideosList, 17 getVideosList,
18 removeVideo, 18 removeVideo,
@@ -22,7 +22,6 @@ import {
22 setDefaultVideoChannel, 22 setDefaultVideoChannel,
23 stopFfmpeg, 23 stopFfmpeg,
24 testFfmpegStreamError, 24 testFfmpegStreamError,
25 updateCustomSubConfig,
26 updateVideo, 25 updateVideo,
27 wait, 26 wait,
28 waitJobs, 27 waitJobs,
@@ -102,14 +101,16 @@ describe('Save replay setting', function () {
102 // Server 1 and server 2 follow each other 101 // Server 1 and server 2 follow each other
103 await doubleFollow(servers[0], servers[1]) 102 await doubleFollow(servers[0], servers[1])
104 103
105 await updateCustomSubConfig(servers[0].url, servers[0].accessToken, { 104 await servers[0].configCommand.updateCustomSubConfig({
106 live: { 105 newConfig: {
107 enabled: true, 106 live: {
108 allowReplay: true, 107 enabled: true,
109 maxDuration: -1, 108 allowReplay: true,
110 transcoding: { 109 maxDuration: -1,
111 enabled: false, 110 transcoding: {
112 resolutions: getCustomConfigResolutions(true) 111 enabled: false,
112 resolutions: ConfigCommand.getCustomConfigResolutions(true)
113 }
113 } 114 }
114 } 115 }
115 }) 116 })