aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/videos/video-change-ownership.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-05-22 09:20:28 +0200
committerChocobozzz <me@florianbigard.com>2023-05-22 09:22:08 +0200
commit33b91e53d21fba295ecf516b717fb36e91990771 (patch)
treec3e6c31636a47b64c164c1e91ee2125bbc61339e /server/tests/api/videos/video-change-ownership.ts
parent679f8800cdc0ef925fae9ca26fb2892a8f475ad5 (diff)
downloadPeerTube-33b91e53d21fba295ecf516b717fb36e91990771.tar.gz
PeerTube-33b91e53d21fba295ecf516b717fb36e91990771.tar.zst
PeerTube-33b91e53d21fba295ecf516b717fb36e91990771.zip
Remove low timeouts
Default timeout is 30s
Diffstat (limited to 'server/tests/api/videos/video-change-ownership.ts')
-rw-r--r--server/tests/api/videos/video-change-ownership.ts14
1 files changed, 0 insertions, 14 deletions
diff --git a/server/tests/api/videos/video-change-ownership.ts b/server/tests/api/videos/video-change-ownership.ts
index e9ef67493..99d774c2b 100644
--- a/server/tests/api/videos/video-change-ownership.ts
+++ b/server/tests/api/videos/video-change-ownership.ts
@@ -130,14 +130,10 @@ describe('Test video change ownership - nominal', function () {
130 }) 130 })
131 131
132 it('Should accept the same change ownership request without crashing', async function () { 132 it('Should accept the same change ownership request without crashing', async function () {
133 this.timeout(10000)
134
135 await command.create({ token: firstUserToken, videoId: servers[0].store.videoCreated.id, username: secondUser }) 133 await command.create({ token: firstUserToken, videoId: servers[0].store.videoCreated.id, username: secondUser })
136 }) 134 })
137 135
138 it('Should not create multiple change ownership requests while one is waiting', async function () { 136 it('Should not create multiple change ownership requests while one is waiting', async function () {
139 this.timeout(10000)
140
141 const body = await command.list({ token: secondUserToken }) 137 const body = await command.list({ token: secondUserToken })
142 138
143 expect(body.total).to.equal(1) 139 expect(body.total).to.equal(1)
@@ -146,14 +142,10 @@ describe('Test video change ownership - nominal', function () {
146 }) 142 })
147 143
148 it('Should not be possible to refuse the change of ownership from first user', async function () { 144 it('Should not be possible to refuse the change of ownership from first user', async function () {
149 this.timeout(10000)
150
151 await command.refuse({ token: firstUserToken, ownershipId: lastRequestId, expectedStatus: HttpStatusCode.FORBIDDEN_403 }) 145 await command.refuse({ token: firstUserToken, ownershipId: lastRequestId, expectedStatus: HttpStatusCode.FORBIDDEN_403 })
152 }) 146 })
153 147
154 it('Should be possible to refuse the change of ownership from second user', async function () { 148 it('Should be possible to refuse the change of ownership from second user', async function () {
155 this.timeout(10000)
156
157 await command.refuse({ token: secondUserToken, ownershipId: lastRequestId }) 149 await command.refuse({ token: secondUserToken, ownershipId: lastRequestId })
158 }) 150 })
159 151
@@ -184,8 +176,6 @@ describe('Test video change ownership - nominal', function () {
184 }) 176 })
185 177
186 it('Should not be possible to accept the change of ownership from first user', async function () { 178 it('Should not be possible to accept the change of ownership from first user', async function () {
187 this.timeout(10000)
188
189 await command.accept({ 179 await command.accept({
190 token: firstUserToken, 180 token: firstUserToken,
191 ownershipId: lastRequestId, 181 ownershipId: lastRequestId,
@@ -195,8 +185,6 @@ describe('Test video change ownership - nominal', function () {
195 }) 185 })
196 186
197 it('Should be possible to accept the change of ownership from second user', async function () { 187 it('Should be possible to accept the change of ownership from second user', async function () {
198 this.timeout(10000)
199
200 await command.accept({ token: secondUserToken, ownershipId: lastRequestId, channelId: secondUserChannelId }) 188 await command.accept({ token: secondUserToken, ownershipId: lastRequestId, channelId: secondUserChannelId })
201 189
202 await waitJobs(servers) 190 await waitJobs(servers)
@@ -309,8 +297,6 @@ describe('Test video change ownership - quota too small', function () {
309 }) 297 })
310 298
311 it('Should not be possible to accept the change of ownership from second user because of exceeded quota', async function () { 299 it('Should not be possible to accept the change of ownership from second user because of exceeded quota', async function () {
312 this.timeout(10000)
313
314 const { videoChannels } = await server.users.getMyInfo({ token: secondUserToken }) 300 const { videoChannels } = await server.users.getMyInfo({ token: secondUserToken })
315 const channelId = videoChannels[0].id 301 const channelId = videoChannels[0].id
316 302