Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.

test: emit empty metadata before emitting unspecified error#1801

Merged
surbhigarg92 merged 2 commits intomainfrom
fix-tests
Feb 10, 2023
Merged

test: emit empty metadata before emitting unspecified error#1801
surbhigarg92 merged 2 commits intomainfrom
fix-tests

Conversation

@alexander-fenster
Copy link
Copy Markdown
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 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 subscribe to this conversation on GitHub. Already have an account? Sign in.

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