[client] Fix debug bundle state anonymization test (#2976)

This commit is contained in:
Viktor Liu 2024-12-02 20:19:34 +01:00 committed by GitHub
parent c7e7ad5030
commit dffce78a8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)