From 31ef30c9413c784297b7a4611444badbfdde354e Mon Sep 17 00:00:00 2001 From: Kharec Date: Mon, 16 Feb 2026 08:43:46 +0100 Subject: [PATCH] test(health): expect unhealthy for SMTP connection failures --- internal/health/smtp_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/health/smtp_test.go b/internal/health/smtp_test.go index be93b8d..9cad8eb 100644 --- a/internal/health/smtp_test.go +++ b/internal/health/smtp_test.go @@ -36,8 +36,8 @@ func TestSMTPChecker_Check_InvalidPort(t *testing.T) { result := checker.Check(ctx) - if result.Status != StatusDegraded { - t.Errorf("expected degraded status for invalid port, got %s", result.Status) + if result.Status != StatusUnhealthy { + t.Errorf("expected unhealthy status for invalid port, got %s", result.Status) } } @@ -59,8 +59,8 @@ func TestSMTPChecker_Check_ConnectionRefused(t *testing.T) { result := checker.Check(ctx) - if result.Status != StatusDegraded { - t.Errorf("expected degraded status for connection refused, got %s", result.Status) + if result.Status != StatusUnhealthy { + t.Errorf("expected unhealthy status for connection refused, got %s", result.Status) } }