Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

Commit 44254e6

Browse files
committed
test: unflake testCloseResultSetWhileRequestInFlight
1 parent facda8a commit 44254e6

3 files changed

Lines changed: 1451 additions & 1432 deletions

File tree

google-cloud-spanner/src/main/java/com/google/cloud/spanner/AbstractResultSet.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ static class GrpcStreamIterator extends AbstractIterator<PartialResultSet>
786786
private final Statement statement;
787787

788788
private SpannerRpc.StreamingCall call;
789-
private boolean withBeginTransaction;
789+
private volatile boolean withBeginTransaction;
790790
private SpannerException error;
791791

792792
@VisibleForTesting
@@ -889,12 +889,6 @@ public void onError(SpannerException e) {
889889
error = e;
890890
addToStream(END_OF_STREAM);
891891
}
892-
893-
// Visible only for testing.
894-
@VisibleForTesting
895-
void setCall(SpannerRpc.StreamingCall call, boolean withBeginTransaction) {
896-
GrpcStreamIterator.this.setCall(call, withBeginTransaction);
897-
}
898892
}
899893
}
900894

0 commit comments

Comments
 (0)