Skip to content

Conversation

@ParthAggarwal16
Copy link

This PR aims at #1086

This PR updates the config_test.go file to make the JSON comparison tests more compatible with Go 1.25.

Changes made:
-Replaced direct byte-for-byte JSON comparisons with structural comparisons using normalizeJSON.
-Introduced normalizeJSON(t, b []byte) map[string]interface{} helper to unmarshal JSON into a map[string]interface{} for reliable comparison.
-Ensures both the default configuration and database configuration JSON tests pass consistently, regardless of formatting or encoding differences.
Testing:
-All tests in config_test.go pass successfully (go test ./config).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant