Skip to content

Commit cde93a3

Browse files
committed
fix: fix broken tests due to the merge
1 parent 32da417 commit cde93a3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ public void testExecuteStreamingPartitionedUpdateRSTstream() {
375375
long count = tx.executeStreamingPartitionedUpdate(Statement.of(sql), Duration.ofMinutes(10));
376376

377377
assertThat(count).isEqualTo(1000L);
378-
verify(rpc).beginTransaction(any(BeginTransactionRequest.class), anyMap());
378+
verify(rpc).beginTransaction(any(BeginTransactionRequest.class), anyMap(), eq(true));
379379
verify(rpc)
380380
.executeStreamingPartitionedDml(
381381
Mockito.eq(executeRequestWithoutResumeToken), anyMap(), any(Duration.class));

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ public void testSessionNotFoundReadWriteTransaction() {
788788
.thenReturn(ApiFutures.immediateFuture(Empty.getDefaultInstance()));
789789
when(closedSession.newTransaction(Options.fromTransactionOptions()))
790790
.thenReturn(closedTransactionContext);
791-
when(closedSession.beginTransactionAsync(any(), true)).thenThrow(sessionNotFound);
791+
when(closedSession.beginTransactionAsync(any(), eq(true))).thenThrow(sessionNotFound);
792792
TransactionRunnerImpl closedTransactionRunner = new TransactionRunnerImpl(closedSession);
793793
closedTransactionRunner.setSpan(mock(Span.class));
794794
when(closedSession.readWriteTransaction()).thenReturn(closedTransactionRunner);
@@ -801,7 +801,7 @@ public void testSessionNotFoundReadWriteTransaction() {
801801
final TransactionContextImpl openTransactionContext = mock(TransactionContextImpl.class);
802802
when(openSession.newTransaction(Options.fromTransactionOptions()))
803803
.thenReturn(openTransactionContext);
804-
when(openSession.beginTransactionAsync(any(), true))
804+
when(openSession.beginTransactionAsync(any(), eq(true)))
805805
.thenReturn(ApiFutures.immediateFuture(ByteString.copyFromUtf8("open-txn")));
806806
TransactionRunnerImpl openTransactionRunner = new TransactionRunnerImpl(openSession);
807807
openTransactionRunner.setSpan(mock(Span.class));

0 commit comments

Comments
 (0)