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

Commit cf71aa2

Browse files
committed
tests: fix regression in close test
1 parent 08a8c8c commit cf71aa2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

testproxy/services/read-row.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export const readRow: ClientImplMaker<IReadRowRequest, IRowResult> = ({
4949
const error = e as GoogleError;
5050
return {
5151
status: {
52-
code: error.code,
52+
code: error.code || grpc.status.FAILED_PRECONDITION,
5353
// e.details must be in an empty array for the test runner to return the status. This is tracked in b/383096533.
5454
details: [],
5555
message: error.message,

testproxy/services/read-rows.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export const readRows: ClientImplMaker<IReadRowsRequest, IRowsResult> = ({
8787
const error = e as GoogleError;
8888
return {
8989
status: {
90-
code: error.code,
90+
code: error.code || grpc.status.FAILED_PRECONDITION,
9191
// e.details must be in an empty array for the test runner to return the status. This is tracked in b/383096533.
9292
details: [],
9393
message: error.message,

0 commit comments

Comments
 (0)