From 95f28163ee2c850897080d3209db7072708a08f1 Mon Sep 17 00:00:00 2001 From: Viktor Liu Date: Mon, 2 Dec 2024 19:55:39 +0100 Subject: [PATCH] Fix debug test --- client/server/debug_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/client/server/debug_test.go b/client/server/debug_test.go index 303e5e66166..1515036bd02 100644 --- a/client/server/debug_test.go +++ b/client/server/debug_test.go @@ -137,6 +137,13 @@ func TestAnonymizeStateFile(t *testing.T) { } anonymizer := anonymize.NewAnonymizer(anonymize.DefaultAddresses()) + + // Pre-seed the domains we need to verify in the test assertions + anonymizer.AnonymizeDomain("test.example.com") + anonymizer.AnonymizeDomain("nested.example.com") + anonymizer.AnonymizeDomain("deep.example.com") + anonymizer.AnonymizeDomain("array1.example.com") + err := anonymizeStateFile(&testState, anonymizer) require.NoError(t, err)