Fix AP tests

This commit is contained in:
Chocobozzz 2018-12-07 14:23:05 +01:00
parent 3114c2c2cc
commit f3e4d59408
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 4 additions and 4 deletions

View File

@ -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 }