From f3e4d594080e2ae727da07e9d3febf5b6ce5cb75 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 7 Dec 2018 14:23:05 +0100 Subject: Fix AP tests --- server/tests/api/activitypub/helpers.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'server') diff --git a/server/tests/api/activitypub/helpers.ts b/server/tests/api/activitypub/helpers.ts index 610846247..51256a922 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.headers req.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').publicKey const actor = { publicKey } @@ -110,7 +110,7 @@ describe('Test activity pub helpers', function () { req.headers = mastodonObject.headers req.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').publicKey const actor = { publicKey } @@ -150,7 +150,7 @@ describe('Test activity pub helpers', function () { let errored = false try { - 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.headers req.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').publicKey const actor = { publicKey } -- cgit v1.2.3