Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: rcmgr: Snapshot defaults and test that we keep consistent defaults #2315

Merged
merged 3 commits into from
Jun 21, 2023

Conversation

MarcoPolo
Copy link
Collaborator

No logical changes. Adds a test to make sure we don't silently break the defaults by snapshotting the current default state. If we change the defaults the diff will show what changed.

@marten-seemann
Copy link
Contributor

@MarcoPolo What's the status of this PR?

@MarcoPolo MarcoPolo enabled auto-merge (squash) June 16, 2023 00:50
@MarcoPolo
Copy link
Collaborator Author

@marten-seemann should be ready to go after a review

@@ -134,7 +134,12 @@ func TestDefaultsDontChange(t *testing.T) {

defaultsFromFile, err := os.ReadFile("limit_config_test_default.json")
require.NoError(t, err)
require.Equal(t, defaultsFromFile, jsonBytes)

// replace crlf with lf because of windows
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤡

@marten-seemann marten-seemann merged commit acca7a6 into master Jun 21, 2023
@MarcoPolo MarcoPolo mentioned this pull request Jul 14, 2023
29 tasks
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.

2 participants