From 25495448edc8d5a13d221bb95ef371bab8cdc068 Mon Sep 17 00:00:00 2001 From: anonpenguin23 Date: Tue, 24 Feb 2026 09:15:00 +0200 Subject: [PATCH] fix: update test to verify is_active value as 1 instead of TRUE --- pkg/namespace/dns_manager_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/namespace/dns_manager_test.go b/pkg/namespace/dns_manager_test.go index 9b0d7e2..0da46e1 100644 --- a/pkg/namespace/dns_manager_test.go +++ b/pkg/namespace/dns_manager_test.go @@ -229,15 +229,15 @@ func TestUpdateNamespaceRecord_SetsActiveTrue(t *testing.T) { t.Fatalf("unexpected error: %v", err) } - // Verify the SQL contains is_active = TRUE for both FQDN and wildcard + // Verify the SQL contains is_active = 1 for both FQDN and wildcard activeCount := 0 for _, call := range mockDB.execCalls { - if strings.Contains(call.Query, "is_active = TRUE") && strings.Contains(call.Query, "UPDATE dns_records") { + if strings.Contains(call.Query, "is_active = 1") && strings.Contains(call.Query, "UPDATE dns_records") { activeCount++ } } if activeCount != 2 { - t.Fatalf("expected 2 UPDATE queries with is_active = TRUE (fqdn + wildcard), got %d", activeCount) + t.Fatalf("expected 2 UPDATE queries with is_active = 1 (fqdn + wildcard), got %d", activeCount) } }