Skip to content

Commit 3ecd2a3

Browse files
committed
chore(spanner): revert precommit token check on mockspanner
1 parent 4c57a82 commit 3ecd2a3

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

google-cloud-spanner/src/test/java/com/google/cloud/spanner/MockSpannerServiceImpl.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2024,14 +2024,6 @@ public void commit(CommitRequest request, StreamObserver<CommitResponse> respons
20242024
return;
20252025
}
20262026
sessionLastUsed.put(session.getName(), Instant.now());
2027-
if (session.getMultiplexed()
2028-
&& !request.hasPrecommitToken()
2029-
&& !request.hasSingleUseTransaction()) {
2030-
throw Status.INVALID_ARGUMENT
2031-
.withDescription(
2032-
"A Commit request for a read-write transaction on a multiplexed session must specify a precommit token.")
2033-
.asRuntimeException();
2034-
}
20352027
try {
20362028
commitExecutionTime.simulateExecutionTime(exceptions, stickyGlobalExceptions, freezeLock);
20372029
// Find or start a transaction

0 commit comments

Comments
 (0)