From 33b91e53d21fba295ecf516b717fb36e91990771 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 22 May 2023 09:20:28 +0200 Subject: Remove low timeouts Default timeout is 30s --- server/tests/api/activitypub/refresher.ts | 2 -- server/tests/api/activitypub/security.ts | 8 -------- 2 files changed, 10 deletions(-) (limited to 'server/tests/api/activitypub') 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 () { }) after(async function () { - this.timeout(10000) - await sqlCommandServer2.cleanup() 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 () { describe('When checking Linked Data Signature', function () { before(async function () { - this.timeout(10000) - await setKeysOfServer(sqlCommands[0], servers[1].url, keys.publicKey, keys.privateKey) await setKeysOfServer(sqlCommands[1], servers[1].url, keys.publicKey, keys.privateKey) await setKeysOfServer(sqlCommands[2], servers[2].url, keys.publicKey, keys.privateKey) @@ -232,8 +230,6 @@ describe('Test ActivityPub security', function () { }) it('Should fail with bad keys', async function () { - this.timeout(10000) - await setKeysOfServer(sqlCommands[0], servers[2].url, invalidKeys.publicKey, invalidKeys.privateKey) await setKeysOfServer(sqlCommands[2], servers[2].url, invalidKeys.publicKey, invalidKeys.privateKey) @@ -254,8 +250,6 @@ describe('Test ActivityPub security', function () { }) it('Should fail with an altered body', async function () { - this.timeout(10000) - await setKeysOfServer(sqlCommands[0], servers[2].url, keys.publicKey, keys.privateKey) await setKeysOfServer(sqlCommands[0], servers[2].url, keys.publicKey, keys.privateKey) @@ -278,8 +272,6 @@ describe('Test ActivityPub security', function () { }) it('Should succeed with a valid signature', async function () { - this.timeout(10000) - const body = getAnnounceWithoutContext(servers[1]) body.actor = servers[2].url + '/accounts/peertube' -- cgit v1.2.3