From 928ae0555e5f2e9db492f45fa695b96541989d90 Mon Sep 17 00:00:00 2001 From: Leonid Pershin Date: Mon, 20 Oct 2025 15:18:13 +0300 Subject: [PATCH] fix test --- ChatBot.Tests/Integration/ProgramIntegrationTests.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ChatBot.Tests/Integration/ProgramIntegrationTests.cs b/ChatBot.Tests/Integration/ProgramIntegrationTests.cs index 8573fa3..d8b2a8c 100644 --- a/ChatBot.Tests/Integration/ProgramIntegrationTests.cs +++ b/ChatBot.Tests/Integration/ProgramIntegrationTests.cs @@ -24,6 +24,9 @@ namespace ChatBot.Tests.Integration; public class ProgramIntegrationTests : TestBase { + private static readonly string[] HealthTagsApiOllama = new[] { "api", "ollama" }; + private static readonly string[] HealthTagsApiTelegram = new[] { "api", "telegram" }; + protected override void ConfigureServices(IServiceCollection services) { // Add configuration @@ -255,7 +258,7 @@ public class ProgramIntegrationTests : TestBase "ollama", sp => new Mock().Object, null, - new[] { "api", "ollama" } + HealthTagsApiOllama ) ); hcOptions.Registrations.Add( @@ -263,7 +266,7 @@ public class ProgramIntegrationTests : TestBase "telegram", sp => new Mock().Object, null, - new[] { "api", "telegram" } + HealthTagsApiTelegram ) ); services.AddSingleton>(Options.Create(hcOptions));