Skip to content

Embed balancer.ClientConn in MockClientConn #91

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

Conversation

arjan-bal
Copy link
Contributor

In grpc/grpc-go#8026, grpc-go plans to enforce users embed existing instances of a ClientConn in their ClientConn wrappers. This allows gRPC Go to add methods to the interface without breaking users, the new methods would be passed through the embedded ClientConn. To avoid breaking the tests using the MockBalancer generated by gomock, this PR manually edits the mock to embed the interface.

A similar PR (#89) was set out when grpc-go was enforcing an embedding requirement for implementors of balancer.SubConn.

@nimf
Copy link
Collaborator

nimf commented Jan 23, 2025

/gcbrun

@nimf nimf merged commit 5ab8989 into GoogleCloudPlatform:main Jan 23, 2025
2 checks passed
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