diff options
Diffstat (limited to 'internal/configuration/validator/keys_test.go')
| -rw-r--r-- | internal/configuration/validator/keys_test.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/configuration/validator/keys_test.go b/internal/configuration/validator/keys_test.go index d5b156ce6..4ec5a2c3b 100644 --- a/internal/configuration/validator/keys_test.go +++ b/internal/configuration/validator/keys_test.go @@ -34,11 +34,13 @@ func TestShouldNotValidateBadKeys(t *testing.T) { func TestAllSpecificErrorKeys(t *testing.T) { var configKeys []string //nolint:prealloc // This is because the test is dynamic based on the keys that exist in the map + var uniqueValues []string // Setup configKeys and uniqueValues expected. for key, value := range specificErrorKeys { configKeys = append(configKeys, key) + if !utils.IsStringInSlice(value, uniqueValues) { uniqueValues = append(uniqueValues, value) } |
