aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api')
-rw-r--r--server/tests/api/check-params/videos.ts2
-rw-r--r--server/tests/api/videos/multiple-servers.ts8
2 files changed, 2 insertions, 8 deletions
diff --git a/server/tests/api/check-params/videos.ts b/server/tests/api/check-params/videos.ts
index 850ad12e0..499a4fc94 100644
--- a/server/tests/api/check-params/videos.ts
+++ b/server/tests/api/check-params/videos.ts
@@ -140,7 +140,7 @@ describe('Test videos API validator', function () {
140 let path: string 140 let path: string
141 141
142 before(async function () { 142 before(async function () {
143 path = '/api/v1/accounts/' + accountUUID + '/video-channels/' + channelUUID + '/videos' 143 path = '/api/v1/video-channels/' + channelUUID + '/videos'
144 }) 144 })
145 145
146 it('Should fail with a bad start pagination', async function () { 146 it('Should fail with a bad start pagination', async function () {
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 }