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

Commit dce8ef1

Browse files
committed
tests: properly handle closed client in testproxy
1 parent 8cc1e61 commit dce8ef1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

testproxy/services/sample-row-keys.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ export const sampleRowKeys: ClientImplMaker<
4242
};
4343
} catch (e) {
4444
const error = e as GoogleError;
45-
console.error('Error:', error.code);
4645

4746
return {
4847
status: {
49-
code: error.code,
48+
// This might be zero/undefined if it's a disconnected client error.
49+
code: error.code || grpc.status.FAILED_PRECONDITION,
5050
details: [],
5151
},
5252
};

0 commit comments

Comments
 (0)