Skip to content

Commit

Permalink
test: unflake testCloseResultSetWhileRequestInFlight (#834)
Browse files Browse the repository at this point in the history
  • Loading branch information
olavloite committed Jan 31, 2021
1 parent 41f4aad commit f218a19
Show file tree
Hide file tree
Showing 3 changed files with 1,451 additions and 1,432 deletions.
Expand Up @@ -786,7 +786,7 @@ static class GrpcStreamIterator extends AbstractIterator<PartialResultSet>
private final Statement statement;

private SpannerRpc.StreamingCall call;
private boolean withBeginTransaction;
private volatile boolean withBeginTransaction;
private SpannerException error;

@VisibleForTesting
Expand Down Expand Up @@ -889,12 +889,6 @@ public void onError(SpannerException e) {
error = e;
addToStream(END_OF_STREAM);
}

// Visible only for testing.
@VisibleForTesting
void setCall(SpannerRpc.StreamingCall call, boolean withBeginTransaction) {
GrpcStreamIterator.this.setCall(call, withBeginTransaction);
}
}
}

Expand Down

0 comments on commit f218a19

Please sign in to comment.