Skip to content

Remove usage of testify in persistent_auth_test.go. #1238

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

Merged
merged 1 commit into from
Jun 26, 2025

Conversation

renaudhartert-db
Copy link
Contributor

What changes are proposed in this pull request?

This PR removes usage of testify in persistent_auth_test. The change is not focused on improving the test ergonomy but rather in cutting the dependency on testify in preparation to another PR.

How is this tested?

N/A

NO_CHANGELOG=true

Copy link

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/sdk-go

Inputs:

  • PR number: 1238
  • Commit SHA: b11f27cf69e341fc10d795ab35958d3dc6cb3965

Checks will be approved automatically on success.

Comment on lines -25 to -27
if m.store == nil {
panic("no store mock")
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Just for my understanding, why are we removing this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The extra code has very little value. If the test was broken, we would still receive a panic due to the nil pointer exception which will have a very clear root cause.

@renaudhartert-db renaudhartert-db added this pull request to the merge queue Jun 26, 2025
Merged via the queue into main with commit 864258a Jun 26, 2025
15 checks passed
@renaudhartert-db renaudhartert-db deleted the renaud-hartert_data/notestify branch June 26, 2025 15:15
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