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

Add tests for AddBetaVersion edge cases #1943

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

jar-stripe
Copy link
Contributor

Why

Follow up to #1941. After fixing stripe/stripe-java#1913, I double checked the other SDKs that were modified as part of that work. The golang SDK is implemented correctly but it did not have unit tests for the edge cases in AddBetaVersion. This PR implements the tests for these edge cases.

What

  • added tests to ensure AddBetaVersion returns an error when called with the same beta version twice, and allows AddBetaVersion to be called multiple times for different beta versions

@jar-stripe jar-stripe merged commit 8b4ba60 into beta Oct 29, 2024
12 checks passed
@jar-stripe jar-stripe deleted the jar/fix_multiple_beta_versions branch October 29, 2024 04:24
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