fix test
This commit is contained in:
@@ -24,6 +24,9 @@ namespace ChatBot.Tests.Integration;
|
|||||||
|
|
||||||
public class ProgramIntegrationTests : TestBase
|
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)
|
protected override void ConfigureServices(IServiceCollection services)
|
||||||
{
|
{
|
||||||
// Add configuration
|
// Add configuration
|
||||||
@@ -255,7 +258,7 @@ public class ProgramIntegrationTests : TestBase
|
|||||||
"ollama",
|
"ollama",
|
||||||
sp => new Mock<IHealthCheck>().Object,
|
sp => new Mock<IHealthCheck>().Object,
|
||||||
null,
|
null,
|
||||||
new[] { "api", "ollama" }
|
HealthTagsApiOllama
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
hcOptions.Registrations.Add(
|
hcOptions.Registrations.Add(
|
||||||
@@ -263,7 +266,7 @@ public class ProgramIntegrationTests : TestBase
|
|||||||
"telegram",
|
"telegram",
|
||||||
sp => new Mock<IHealthCheck>().Object,
|
sp => new Mock<IHealthCheck>().Object,
|
||||||
null,
|
null,
|
||||||
new[] { "api", "telegram" }
|
HealthTagsApiTelegram
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
services.AddSingleton<IOptions<HealthCheckServiceOptions>>(Options.Create(hcOptions));
|
services.AddSingleton<IOptions<HealthCheckServiceOptions>>(Options.Create(hcOptions));
|
||||||
|
|||||||
Reference in New Issue
Block a user