Skip to content

Conversation

@bluepal-prasanthi-moparthi
Copy link
Collaborator

No description provided.

@cla-bot cla-bot bot added the cla-signed label Dec 9, 2025
@cursor
Copy link

cursor bot commented Dec 9, 2025

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.

Copy link
Contributor

Copilot AI left a 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 getApplierEndpoint and getSyncEndpoint to 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: false option

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.

@jwierzbo jwierzbo merged commit f7010b4 into master Dec 10, 2025
11 checks passed
@jwierzbo jwierzbo deleted the feature/bug_fix branch December 10, 2025 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants