From 616c473ec573f3ccf4a93e3ca13d9071136b857d Mon Sep 17 00:00:00 2001 From: Maskym Vavilov Date: Wed, 11 Dec 2024 10:31:14 +0000 Subject: [PATCH] fix flaky integration test Signed-off-by: Maskym Vavilov --- internal/controller/dnsrecord_healthchecks_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/controller/dnsrecord_healthchecks_test.go b/internal/controller/dnsrecord_healthchecks_test.go index 7a65967..cb5b11a 100644 --- a/internal/controller/dnsrecord_healthchecks_test.go +++ b/internal/controller/dnsrecord_healthchecks_test.go @@ -437,7 +437,7 @@ var _ = Describe("DNSRecordReconciler_HealthChecks", func() { "Type": Equal(string(v1alpha1.ConditionTypeHealthy)), "Status": Equal(metav1.ConditionFalse), "Reason": Equal(string(v1alpha1.ConditionReasonUnhealthy)), - "Message": Equal("Not healthy addresses: [172.32.200.1 172.32.200.2]"), + "Message": And(ContainSubstring("Not healthy addresses"), ContainSubstring("172.32.200.1"), ContainSubstring("172.32.200.2")), }), MatchFields(IgnoreExtras, Fields{ "Type": Equal(string(v1alpha1.ConditionTypeReady)),