ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix AP tests
Chocobozzzf3e4d594080e
diff --git a/server/tests/api/activitypub/helpers.ts b/server/tests/api/activitypub/helpers.tsindex 6108462478..51256a9222 100644--- a/server/tests/api/activitypub/helpers.ts+++ b/server/tests/api/activitypub/helpers.ts@@ -91,7 +91,7 @@ describe('Test activity pub helpers', function () {req.headers = mastodonObject.headersreq.headers.signature = 'Signature ' + req.headers.signature- const parsed = parseHTTPSignature(req, 3600 * 365 * 3)+ const parsed = parseHTTPSignature(req, 3600 * 1000 * 365 * 10)const publicKey = require('./json/mastodon/public-key.json').publicKeyconst actor = { publicKey }@@ -110,7 +110,7 @@ describe('Test activity pub helpers', function () {req.headers = mastodonObject.headersreq.headers.signature = 'Signature ' + req.headers.signature- const parsed = parseHTTPSignature(req, 3600 * 365 * 3)+ const parsed = parseHTTPSignature(req, 3600 * 1000 * 365 * 10)const publicKey = require('./json/mastodon/bad-public-key.json').publicKeyconst actor = { publicKey }@@ -150,7 +150,7 @@ describe('Test activity pub helpers', function () {let errored = falsetry {- parseHTTPSignature(req, 3600 * 365 * 3)+ parseHTTPSignature(req, 3600 * 1000 * 365 * 10)} catch {errored = true}@@ -168,7 +168,7 @@ describe('Test activity pub helpers', function () {req.headers = mastodonObject.headersreq.headers.signature = 'Signature ' + req.headers.signature- const parsed = parseHTTPSignature(req, 3600 * 365 * 3)+ const parsed = parseHTTPSignature(req, 3600 * 1000 * 365 * 10)const publicKey = require('./json/mastodon/public-key.json').publicKeyconst actor = { publicKey }