Skip to content
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

test(Metadata): add test to verify behavior of interceptors with context attached initial and trailing metadata #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zakhenry
Copy link

Not sure if this is useful to have in this repo, but I had a hard time working out how to get metadata working because the upstream docs in grpc are scant. This repo was a good place to test things out so thought I'd raise this PR in case it helps someone else out

@@ -162,6 +168,16 @@ def test_modifying_interceptor(aio):
) as client:
assert client.Execute(DummyRequest(input="test")).output == "TEST"

def test_modifying_interceptor():

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like you copied the test above without changing the name, so this ends up replacing the previous test. It'll need a unique name.

Could you also add an async version for consistency with other tests?

@dan-hipschman
Copy link

Hi @zakhenry

I'm fine with adding this as a new test. Thanks! See comment for feedback.

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.

3 participants