-
Notifications
You must be signed in to change notification settings - Fork 81
bug fix #723
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
bug fix #723
Conversation
|
You have run out of free Bugbot PR reviews for this billing cycle. This will reset on December 28. To receive reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR refactors hardcoded test endpoints to use dynamically constructed values from the TEST_ENDPOINTS environment variable, and fixes pointer comparison issues in access token tests. The changes make tests more flexible and environment-aware, but introduce critical bugs in the endpoint conversion logic.
- Adds helper functions
getApplierEndpointandgetSyncEndpointto convert HTTP/HTTPS endpoints to their respective protocol formats (tcp://, ssl://, http+tcp://, https+ssl://) - Replaces all hardcoded endpoint strings in replication tests with calls to these helper functions
- Fixes pointer dereferencing in access token comparison tests and adds
Parallel: falseoption
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| v2/tests/client_replication_test.go | Introduces endpoint conversion helper functions and replaces 6 hardcoded endpoint strings with dynamic calls |
| v2/tests/client_access_tokens_test.go | Corrects require.Equal calls to compare dereferenced pointer values and disables parallel execution |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]>
No description provided.