test(health): expect unhealthy for SMTP connection failures
This commit is contained in:
@@ -36,8 +36,8 @@ func TestSMTPChecker_Check_InvalidPort(t *testing.T) {
|
|||||||
|
|
||||||
result := checker.Check(ctx)
|
result := checker.Check(ctx)
|
||||||
|
|
||||||
if result.Status != StatusDegraded {
|
if result.Status != StatusUnhealthy {
|
||||||
t.Errorf("expected degraded status for invalid port, got %s", result.Status)
|
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)
|
result := checker.Check(ctx)
|
||||||
|
|
||||||
if result.Status != StatusDegraded {
|
if result.Status != StatusUnhealthy {
|
||||||
t.Errorf("expected degraded status for connection refused, got %s", result.Status)
|
t.Errorf("expected unhealthy status for connection refused, got %s", result.Status)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user