Fix unit tests

This commit is contained in:
Laura Hausmann 2024-01-24 04:22:19 +01:00
parent de3ca32aa9
commit 14785de8c2
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -2,6 +2,7 @@ using System.Text;
using Iceshrimp.Backend.Core.Federation.ActivityStreams;
using Iceshrimp.Backend.Core.Federation.ActivityStreams.Types;
using Iceshrimp.Backend.Core.Federation.Cryptography;
using Iceshrimp.Backend.Core.Middleware;
using Iceshrimp.Backend.Core.Services;
using Microsoft.Extensions.DependencyInjection;
using Newtonsoft.Json.Linq;
@ -41,8 +42,8 @@ public class HttpSignatureTests {
request.Headers.Date = DateTimeOffset.Now - TimeSpan.FromHours(13);
await Assert.ThrowsExceptionAsync<Exception>(async () =>
await request.Verify(MockObjects.UserKeypair.PublicKey));
await Assert.ThrowsExceptionAsync<CustomException>(async () =>
await request.Verify(MockObjects.UserKeypair.PublicKey));
}
[TestMethod]