Skip to content

Commit 3dcf321

Browse files
committed
chore: refresh transaction id in it
1 parent 095952a commit 3dcf321

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

google/cloud/spanner/integration_tests/client_integration_test.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,12 +817,13 @@ TEST_F(ClientIntegrationTest, ReadLockModeOptionIsSent) {
817817
StreamOf<std::tuple<std::int64_t>>(tx_a_read_result)) {
818818
EXPECT_STATUS_OK(row);
819819
}
820-
821820
// Now a separate tx "B" will perform a write operation before tx "A" is
822821
// finished.
823822
auto tx_b = client_->Commit(mutation_helper("FirstModifiedName"));
824823
EXPECT_STATUS_OK(tx_b);
825824

825+
tx_a = MakeReadWriteTransaction(tx_a, Transaction::ReadWriteOptions(read_lock_mode));
826+
826827
// Depending on the read lock mode, the result of the next write operation
827828
// in tx "A" will vary.
828829
return client_->Commit(tx_a, mutation_helper("SecondModifiedName"));

0 commit comments

Comments
 (0)