-
Notifications
You must be signed in to change notification settings - Fork 68
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
grpcclient: Support custom gRPC compressors #583
Conversation
54e87f9
to
623d4c9
Compare
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 on the right path.
Thanks for the review @pstibrany - I'm going to add tests before finalizing. |
Signed-off-by: Arve Knudsen <[email protected]>
184dcac
to
a871de8
Compare
Signed-off-by: Arve Knudsen <[email protected]>
Added tests. |
func TestConfig(t *testing.T) { | ||
t.Run("custom compressors", func(t *testing.T) { |
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.
func TestConfig(t *testing.T) { | |
t.Run("custom compressors", func(t *testing.T) { | |
func TestCustomCompressorsConfig(t *testing.T) { |
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.
I guess it's a style issue, but to me it made sense to make the root test for the Config
class, and then have sub tests for functionalities.
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.
yeah, not important at all. It just look weird to me to have top-level test function with single t.Run
call :) Feel free to ignore.
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.
Hopefully there will be more sub-tests :)
What this PR does:
Add support to the
grpcclient
package for custom gRPC compressors.Which issue(s) this PR fixes:
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]