From 8fab9985b28a7f72084e5a8ba22e07015350ed5d Mon Sep 17 00:00:00 2001 From: Jordan Dominion Date: Sun, 16 Feb 2025 20:32:33 -0500 Subject: [PATCH] Fix TestingGitHubService. Needs an actual `HttpMessageHandler` here --- tests/Tgstation.Server.Tests/Live/TestingGitHubService.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Tgstation.Server.Tests/Live/TestingGitHubService.cs b/tests/Tgstation.Server.Tests/Live/TestingGitHubService.cs index 48434bd142..b37749af9f 100644 --- a/tests/Tgstation.Server.Tests/Live/TestingGitHubService.cs +++ b/tests/Tgstation.Server.Tests/Live/TestingGitHubService.cs @@ -16,6 +16,7 @@ using Tgstation.Server.Host.Configuration; using Tgstation.Server.Host.Extensions; using Tgstation.Server.Host.Security; using Tgstation.Server.Host.System; +using Tgstation.Server.Host.Tests; using Tgstation.Server.Host.Utils.GitHub; namespace Tgstation.Server.Tests.Live @@ -39,7 +40,7 @@ namespace Tgstation.Server.Tests.Live GitHubAccessToken = Environment.GetEnvironmentVariable("TGS_TEST_GITHUB_TOKEN") }); - var gitHubClientFactory = new GitHubClientFactory(new AssemblyInformationProvider(), Mock.Of(), Mock.Of>(), mockOptions.Object); + var gitHubClientFactory = new GitHubClientFactory(new AssemblyInformationProvider(), new BasicHttpMessageHandlerFactory(), Mock.Of>(), mockOptions.Object); RealClient = gitHubClientFactory.CreateClient(CancellationToken.None).GetAwaiter().GetResult(); }