aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/activitypub
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/activitypub
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/activitypub')
-rw-r--r--server/tests/api/activitypub/refresher.ts2
-rw-r--r--server/tests/api/activitypub/security.ts8
2 files changed, 0 insertions, 10 deletions
diff --git a/server/tests/api/activitypub/refresher.ts b/server/tests/api/activitypub/refresher.ts
index 6c48b7ac8..4ea7929ec 100644
--- a/server/tests/api/activitypub/refresher.ts
+++ b/server/tests/api/activitypub/refresher.ts
@@ -150,8 +150,6 @@ describe('Test AP refresher', function () {
150 }) 150 })
151 151
152 after(async function () { 152 after(async function () {
153 this.timeout(10000)
154
155 await sqlCommandServer2.cleanup() 153 await sqlCommandServer2.cleanup()
156 154
157 await cleanupTests(servers) 155 await cleanupTests(servers)
diff --git a/server/tests/api/activitypub/security.ts b/server/tests/api/activitypub/security.ts
index 6cf504f6f..31ebc89b4 100644
--- a/server/tests/api/activitypub/security.ts
+++ b/server/tests/api/activitypub/security.ts
@@ -220,8 +220,6 @@ describe('Test ActivityPub security', function () {
220 220
221 describe('When checking Linked Data Signature', function () { 221 describe('When checking Linked Data Signature', function () {
222 before(async function () { 222 before(async function () {
223 this.timeout(10000)
224
225 await setKeysOfServer(sqlCommands[0], servers[1].url, keys.publicKey, keys.privateKey) 223 await setKeysOfServer(sqlCommands[0], servers[1].url, keys.publicKey, keys.privateKey)
226 await setKeysOfServer(sqlCommands[1], servers[1].url, keys.publicKey, keys.privateKey) 224 await setKeysOfServer(sqlCommands[1], servers[1].url, keys.publicKey, keys.privateKey)
227 await setKeysOfServer(sqlCommands[2], servers[2].url, keys.publicKey, keys.privateKey) 225 await setKeysOfServer(sqlCommands[2], servers[2].url, keys.publicKey, keys.privateKey)
@@ -232,8 +230,6 @@ describe('Test ActivityPub security', function () {
232 }) 230 })
233 231
234 it('Should fail with bad keys', async function () { 232 it('Should fail with bad keys', async function () {
235 this.timeout(10000)
236
237 await setKeysOfServer(sqlCommands[0], servers[2].url, invalidKeys.publicKey, invalidKeys.privateKey) 233 await setKeysOfServer(sqlCommands[0], servers[2].url, invalidKeys.publicKey, invalidKeys.privateKey)
238 await setKeysOfServer(sqlCommands[2], servers[2].url, invalidKeys.publicKey, invalidKeys.privateKey) 234 await setKeysOfServer(sqlCommands[2], servers[2].url, invalidKeys.publicKey, invalidKeys.privateKey)
239 235
@@ -254,8 +250,6 @@ describe('Test ActivityPub security', function () {
254 }) 250 })
255 251
256 it('Should fail with an altered body', async function () { 252 it('Should fail with an altered body', async function () {
257 this.timeout(10000)
258
259 await setKeysOfServer(sqlCommands[0], servers[2].url, keys.publicKey, keys.privateKey) 253 await setKeysOfServer(sqlCommands[0], servers[2].url, keys.publicKey, keys.privateKey)
260 await setKeysOfServer(sqlCommands[0], servers[2].url, keys.publicKey, keys.privateKey) 254 await setKeysOfServer(sqlCommands[0], servers[2].url, keys.publicKey, keys.privateKey)
261 255
@@ -278,8 +272,6 @@ describe('Test ActivityPub security', function () {
278 }) 272 })
279 273
280 it('Should succeed with a valid signature', async function () { 274 it('Should succeed with a valid signature', async function () {
281 this.timeout(10000)
282
283 const body = getAnnounceWithoutContext(servers[1]) 275 const body = getAnnounceWithoutContext(servers[1])
284 body.actor = servers[2].url + '/accounts/peertube' 276 body.actor = servers[2].url + '/accounts/peertube'
285 277