From 3f963305b50b65aef442b0f5ffa3f1bf6006e291 Mon Sep 17 00:00:00 2001 From: dclipca Date: Fri, 31 Jan 2025 03:25:15 +0200 Subject: [PATCH] misc --- SpongeEngine.KoboldSharp.Tests/Common/TestConfig.cs | 4 +--- .../Integration/IntegrationTestBase.cs | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/SpongeEngine.KoboldSharp.Tests/Common/TestConfig.cs b/SpongeEngine.KoboldSharp.Tests/Common/TestConfig.cs index 4577b12..8adcb1f 100644 --- a/SpongeEngine.KoboldSharp.Tests/Common/TestConfig.cs +++ b/SpongeEngine.KoboldSharp.Tests/Common/TestConfig.cs @@ -2,8 +2,6 @@ { public static class TestConfig { - public const string BaseUrl = "http://localhost:5001"; - - public static string NativeApiBaseUrl => Environment.GetEnvironmentVariable("KOBOLDCPP_BASE_URL") ?? $"{BaseUrl}/api"; + public const string BaseAddress = "http://localhost:5001/"; } } \ No newline at end of file diff --git a/SpongeEngine.KoboldSharp.Tests/Integration/IntegrationTestBase.cs b/SpongeEngine.KoboldSharp.Tests/Integration/IntegrationTestBase.cs index a4e4338..402cde9 100644 --- a/SpongeEngine.KoboldSharp.Tests/Integration/IntegrationTestBase.cs +++ b/SpongeEngine.KoboldSharp.Tests/Integration/IntegrationTestBase.cs @@ -20,7 +20,7 @@ protected IntegrationTestBase(ITestOutputHelper output) { HttpClient = new HttpClient { - BaseAddress = new Uri(TestConfig.BaseUrl) + BaseAddress = new Uri(TestConfig.BaseAddress) }, Logger = LoggerFactory .Create(builder => builder.AddXUnit(output))