Skip to content

Commit

Permalink
fix: Check and mutate generic header conformance test (#1551)
Browse files Browse the repository at this point in the history
Grab app profiled id from client
  • Loading branch information
kevkim-codes authored Dec 17, 2024
1 parent 6ef7671 commit 7f1099a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion testproxy/known_failures.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ TestReadRows_Retry_WithRetryInfo\|
TestReadRows_Retry_WithRetryInfo_MultipleErrorResponse\|
TestCheckAndMutateRow_NoRetry_TransientError\|
TestCheckAndMutateRow_Generic_DeadlineExceeded\|
TestCheckAndMutateRow_Generic_Headers\|
TestSampleRowKeys_Generic_DeadlineExceeded\|
TestSampleRowKeys_Retry_WithRoutingCookie
4 changes: 3 additions & 1 deletion testproxy/services/check-and-mutate-row.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ const checkAndMutateRow = ({clientMap}) =>
normalizeCallback(async rawRequest => {
const {request} = rawRequest;
const {request: checkAndMutateRequest} = request;
const {appProfileId, falseMutations, rowKey, tableName, trueMutations} =
const {falseMutations, rowKey, tableName, trueMutations} =
checkAndMutateRequest;

const {clientId} = request;
const client = clientMap.get(clientId)[v2];
const appProfileId = clientMap.get(clientId).appProfileId;

const [result] = await client.checkAndMutateRow({
appProfileId,
falseMutations,
Expand Down

0 comments on commit 7f1099a

Please sign in to comment.