fix: address review feedback for health check endpoints
PR Checks / test-and-build (pull_request) Successful in 8m34s
PR Checks / test-and-build (pull_request) Successful in 8m34s
- Install wget in Web Dockerfile for compose healthcheck - Ensure HttpListener response is always closed in BotHealthCheckHostedService - Use ephemeral port in Bot health check test to avoid port conflicts - Rename NpgsqlHealthCheck test to reflect actual behavior Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -73,7 +73,7 @@ public sealed class WebHealthEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task NpgsqlHealthCheck_ShouldReturnHealthy_WhenDatabaseIsAccessible()
|
||||
public async Task NpgsqlHealthCheck_ShouldReturnUnhealthy_WhenDatabaseIsInaccessible()
|
||||
{
|
||||
var dataSource = NpgsqlDataSource.Create("Host=localhost;Port=5432;Database=gmrelay_db;Username=gmrelay;Password=fake");
|
||||
var healthCheck = new NpgsqlHealthCheck(dataSource);
|
||||
|
||||
Reference in New Issue
Block a user