fix test
All checks were successful
SonarQube / Build and analyze (push) Successful in 3m33s
Unit Tests / Run Tests (push) Successful in 2m22s

This commit is contained in:
Leonid Pershin
2025-10-20 15:18:13 +03:00
parent 1c910d7b7f
commit 928ae0555e

View File

@@ -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<IHealthCheck>().Object,
null,
new[] { "api", "ollama" }
HealthTagsApiOllama
)
);
hcOptions.Registrations.Add(
@@ -263,7 +266,7 @@ public class ProgramIntegrationTests : TestBase
"telegram",
sp => new Mock<IHealthCheck>().Object,
null,
new[] { "api", "telegram" }
HealthTagsApiTelegram
)
);
services.AddSingleton<IOptions<HealthCheckServiceOptions>>(Options.Create(hcOptions));