From 14785de8c2c01b0e2bf8c40930cbca32da3bd003 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Wed, 24 Jan 2024 04:22:19 +0100 Subject: [PATCH] Fix unit tests --- Iceshrimp.Tests/Cryptography/HttpSignatureTests.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Iceshrimp.Tests/Cryptography/HttpSignatureTests.cs b/Iceshrimp.Tests/Cryptography/HttpSignatureTests.cs index de776381..7790b9ab 100644 --- a/Iceshrimp.Tests/Cryptography/HttpSignatureTests.cs +++ b/Iceshrimp.Tests/Cryptography/HttpSignatureTests.cs @@ -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(async () => - await request.Verify(MockObjects.UserKeypair.PublicKey)); + await Assert.ThrowsExceptionAsync(async () => + await request.Verify(MockObjects.UserKeypair.PublicKey)); } [TestMethod]