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)