File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
google-cloud-spanner/src/test/java/com/google/cloud/spanner Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -375,7 +375,7 @@ public void testExecuteStreamingPartitionedUpdateRSTstream() {
375
375
long count = tx .executeStreamingPartitionedUpdate (Statement .of (sql ), Duration .ofMinutes (10 ));
376
376
377
377
assertThat (count ).isEqualTo (1000L );
378
- verify (rpc ).beginTransaction (any (BeginTransactionRequest .class ), anyMap ());
378
+ verify (rpc ).beginTransaction (any (BeginTransactionRequest .class ), anyMap (), eq ( true ) );
379
379
verify (rpc )
380
380
.executeStreamingPartitionedDml (
381
381
Mockito .eq (executeRequestWithoutResumeToken ), anyMap (), any (Duration .class ));
Original file line number Diff line number Diff line change @@ -788,7 +788,7 @@ public void testSessionNotFoundReadWriteTransaction() {
788
788
.thenReturn (ApiFutures .immediateFuture (Empty .getDefaultInstance ()));
789
789
when (closedSession .newTransaction (Options .fromTransactionOptions ()))
790
790
.thenReturn (closedTransactionContext );
791
- when (closedSession .beginTransactionAsync (any (), true )).thenThrow (sessionNotFound );
791
+ when (closedSession .beginTransactionAsync (any (), eq ( true ) )).thenThrow (sessionNotFound );
792
792
TransactionRunnerImpl closedTransactionRunner = new TransactionRunnerImpl (closedSession );
793
793
closedTransactionRunner .setSpan (mock (Span .class ));
794
794
when (closedSession .readWriteTransaction ()).thenReturn (closedTransactionRunner );
@@ -801,7 +801,7 @@ public void testSessionNotFoundReadWriteTransaction() {
801
801
final TransactionContextImpl openTransactionContext = mock (TransactionContextImpl .class );
802
802
when (openSession .newTransaction (Options .fromTransactionOptions ()))
803
803
.thenReturn (openTransactionContext );
804
- when (openSession .beginTransactionAsync (any (), true ))
804
+ when (openSession .beginTransactionAsync (any (), eq ( true ) ))
805
805
.thenReturn (ApiFutures .immediateFuture (ByteString .copyFromUtf8 ("open-txn" )));
806
806
TransactionRunnerImpl openTransactionRunner = new TransactionRunnerImpl (openSession );
807
807
openTransactionRunner .setSpan (mock (Span .class ));
You can’t perform that action at this time.
0 commit comments