aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/plugins
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/plugins
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/plugins')
-rw-r--r--server/tests/plugins/external-auth.ts2
-rw-r--r--server/tests/plugins/id-and-pass-auth.ts2
-rw-r--r--server/tests/plugins/plugin-helpers.ts5
3 files changed, 0 insertions, 9 deletions
diff --git a/server/tests/plugins/external-auth.ts b/server/tests/plugins/external-auth.ts
index e600f958f..e4015939a 100644
--- a/server/tests/plugins/external-auth.ts
+++ b/server/tests/plugins/external-auth.ts
@@ -290,8 +290,6 @@ describe('Test external auth plugins', function () {
290 }) 290 })
291 291
292 it('Should reject token of Kefka by the plugin hook', async function () { 292 it('Should reject token of Kefka by the plugin hook', async function () {
293 this.timeout(10000)
294
295 await wait(5000) 293 await wait(5000)
296 294
297 await server.users.getMyInfo({ token: kefkaAccessToken, expectedStatus: HttpStatusCode.UNAUTHORIZED_401 }) 295 await server.users.getMyInfo({ token: kefkaAccessToken, expectedStatus: HttpStatusCode.UNAUTHORIZED_401 })
diff --git a/server/tests/plugins/id-and-pass-auth.ts b/server/tests/plugins/id-and-pass-auth.ts
index 10155c28b..127c29cbc 100644
--- a/server/tests/plugins/id-and-pass-auth.ts
+++ b/server/tests/plugins/id-and-pass-auth.ts
@@ -163,8 +163,6 @@ describe('Test id and pass auth plugins', function () {
163 }) 163 })
164 164
165 it('Should reject token of laguna by the plugin hook', async function () { 165 it('Should reject token of laguna by the plugin hook', async function () {
166 this.timeout(10000)
167
168 await wait(5000) 166 await wait(5000)
169 167
170 await server.users.getMyInfo({ token: lagunaAccessToken, expectedStatus: HttpStatusCode.UNAUTHORIZED_401 }) 168 await server.users.getMyInfo({ token: lagunaAccessToken, expectedStatus: HttpStatusCode.UNAUTHORIZED_401 })
diff --git a/server/tests/plugins/plugin-helpers.ts b/server/tests/plugins/plugin-helpers.ts
index a47b7d4d2..e951a1299 100644
--- a/server/tests/plugins/plugin-helpers.ts
+++ b/server/tests/plugins/plugin-helpers.ts
@@ -219,7 +219,6 @@ describe('Test plugin helpers', function () {
219 }) 219 })
220 220
221 it('Should mute server 2', async function () { 221 it('Should mute server 2', async function () {
222 this.timeout(10000)
223 await postCommand(servers[0], 'blockServer', { hostToBlock: servers[1].host }) 222 await postCommand(servers[0], 'blockServer', { hostToBlock: servers[1].host })
224 223
225 const { data } = await servers[0].videos.list() 224 const { data } = await servers[0].videos.list()
@@ -254,8 +253,6 @@ describe('Test plugin helpers', function () {
254 }) 253 })
255 254
256 it('Should blacklist video', async function () { 255 it('Should blacklist video', async function () {
257 this.timeout(10000)
258
259 await postCommand(servers[0], 'blacklist', { videoUUID: videoUUIDServer1, unfederate: true }) 256 await postCommand(servers[0], 'blacklist', { videoUUID: videoUUIDServer1, unfederate: true })
260 257
261 await waitJobs(servers) 258 await waitJobs(servers)
@@ -269,8 +266,6 @@ describe('Test plugin helpers', function () {
269 }) 266 })
270 267
271 it('Should unblacklist video', async function () { 268 it('Should unblacklist video', async function () {
272 this.timeout(10000)
273
274 await postCommand(servers[0], 'unblacklist', { videoUUID: videoUUIDServer1 }) 269 await postCommand(servers[0], 'unblacklist', { videoUUID: videoUUIDServer1 })
275 270
276 await waitJobs(servers) 271 await waitJobs(servers)