Skip to content

Commit

Permalink
fix: merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
olavloite committed Apr 8, 2020
1 parent 2c55461 commit c95aed6
Showing 1 changed file with 1 addition and 19 deletions.
Expand Up @@ -92,25 +92,7 @@ public static class BenchmarkState {

/** AuxCounter for number of RPCs. */
public int numBatchCreateSessionsRpcs() {
return countRequests(BatchCreateSessionsRequest.class);
}

/** AuxCounter for number of sessions created. */
public int sessionsCreated() {
return mockSpanner.numSessionsCreated();
}

@Setup(Level.Invocation)
public void setup() throws Exception {
mockSpanner = new MockSpannerServiceImpl();
mockSpanner.setAbortProbability(
0.0D); // We don't want any unpredictable aborted transactions.
mockSpanner.putStatementResult(StatementResult.update(UPDATE_STATEMENT, UPDATE_COUNT));
mockSpanner.putStatementResult(StatementResult.query(SELECT1, SELECT1_RESULTSET));
mockSpanner.putStatementResult(
StatementResult.exception(
INVALID_UPDATE_STATEMENT,
Status.INVALID_ARGUMENT.withDescription("invalid statement").asRuntimeException()));
return mockServer.countRequests(BatchCreateSessionsRequest.class);
}

/** AuxCounter for number of sessions created. */
Expand Down

0 comments on commit c95aed6

Please sign in to comment.