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

Commit db4ac9c

Browse files
committed
chore: revert "chore: revert "tests: fix TestMutateRow_Generic_DeadlineExceeded""
This reverts commit 4b021ec.
1 parent 2d783a3 commit db4ac9c

2 files changed

Lines changed: 20 additions & 10 deletions

File tree

testproxy/known_failures.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
TestMutateRow_Generic_DeadlineExceeded\|
21
TestMutateRow_Generic_CloseClient\|
32
TestMutateRow_Generic_DeadlineExceeded\|
43
TestReadModifyWriteRow_Generic_DeadlineExceeded\|

testproxy/services/mutate-row.ts

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,25 @@ export const mutateRow: ClientImplMaker<
3434
const appProfileId = bigtable.appProfileId;
3535
const client = getBigtableClient(bigtable);
3636

37-
await client.mutateRow({
38-
appProfileId,
39-
mutations,
40-
tableName,
41-
rowKey,
42-
});
37+
try {
38+
await client.mutateRow({
39+
appProfileId,
40+
mutations,
41+
tableName,
42+
rowKey,
43+
});
4344

44-
return {
45-
status: {code: grpc.status.OK, details: []},
46-
};
45+
return {
46+
status: {code: grpc.status.OK, details: []},
47+
};
48+
} catch (e) {
49+
const error = e as GoogleError;
50+
return {
51+
status: {
52+
code: error.code ? error.code : grpc.status.UNKNOWN,
53+
message: error.message,
54+
details: [],
55+
},
56+
};
57+
}
4758
});

0 commit comments

Comments
 (0)