Skip to content

test: emit empty metadata before emitting unspecified error #1801

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
merged 2 commits into from
Feb 10, 2023

Conversation

alexander-fenster
Copy link
Contributor

@alexander-fenster alexander-fenster commented Feb 9, 2023

Since gRPC upgrade to @grpc/grpc-js v1.8.x, the server can emit errors without sending a metadata. It breaks some retrying logic in retry-request. This is unlikely to happen in production; for the test, let's make our stub gRPC server emit metadata event (with an empty Metadata instance) before emitting an error.

BEGIN_COMMIT_OVERRIDE
fix: tests emit empty metadata before emitting unspecified error
END_COMMIT_OVERRIDE

@alexander-fenster alexander-fenster requested review from a team as code owners February 9, 2023 01:59
@product-auto-label product-auto-label bot added size: xs Pull request size is extra small. api: spanner Issues related to the googleapis/nodejs-spanner API. labels Feb 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the googleapis/nodejs-spanner API. size: xs Pull request size is extra small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants