aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/videos
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/videos')
-rw-r--r--server/tests/api/videos/multiple-servers.ts8
1 files changed, 1 insertions, 7 deletions
diff --git a/server/tests/api/videos/multiple-servers.ts b/server/tests/api/videos/multiple-servers.ts
index 6238cdc08..e462a2d47 100644
--- a/server/tests/api/videos/multiple-servers.ts
+++ b/server/tests/api/videos/multiple-servers.ts
@@ -47,7 +47,6 @@ describe('Test multiple servers', function () {
47 let servers: ServerInfo[] = [] 47 let servers: ServerInfo[] = []
48 const toRemove = [] 48 const toRemove = []
49 let videoUUID = '' 49 let videoUUID = ''
50 let accountId: number
51 let videoChannelId: number 50 let videoChannelId: number
52 51
53 before(async function () { 52 before(async function () {
@@ -59,16 +58,11 @@ describe('Test multiple servers', function () {
59 await setAccessTokensToServers(servers) 58 await setAccessTokensToServers(servers)
60 59
61 { 60 {
62 const res = await getAccountsList(servers[0].url)
63 accountId = res.body.data[0].id
64 }
65
66 {
67 const videoChannel = { 61 const videoChannel = {
68 name: 'my channel', 62 name: 'my channel',
69 description: 'super channel' 63 description: 'super channel'
70 } 64 }
71 await addVideoChannel(servers[ 0 ].url, servers[ 0 ].accessToken, accountId, videoChannel) 65 await addVideoChannel(servers[ 0 ].url, servers[ 0 ].accessToken, videoChannel)
72 const channelRes = await getVideoChannelsList(servers[ 0 ].url, 0, 1) 66 const channelRes = await getVideoChannelsList(servers[ 0 ].url, 0, 1)
73 videoChannelId = channelRes.body.data[ 0 ].id 67 videoChannelId = channelRes.body.data[ 0 ].id
74 } 68 }