-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
feat(pubsub/pstest): support listening on custom host #11586
base: main
Are you sure you want to change the base?
feat(pubsub/pstest): support listening on custom host #11586
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
Hi @hongalex, please help to take a look |
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.
Looks good overall, but I have some concerns about naming
c24aa0d
to
a20f447
Compare
pubsub/pstest/fake.go
Outdated
// at the specified address (host and port). Before starting the server, the | ||
// provided callback is called to allow caller to register additional fakes into | ||
// grpc server. | ||
func NewServerWithCallback(address string, callback func(*grpc.Server), opts ...ServerReactorOption) *Server { |
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.
Changing the signature of NewServerWithCallback
is a breaking change, and although we do allow for breaking changes within the fake, we should probably avoid it when it is easy to do so. Can you revert this change?
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.
updated, thanks!
9fee3f3
to
ab6fe46
Compare
hi @hongalex , seems the CI fails, could you please try it again? |
Regarding #11569, this PR adds support of pstest test server to listening on custom hosts rather than only localhost.