Skip to content

Commit

Permalink
Fix package private exception handler tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oliemansm committed Dec 25, 2020
1 parent ac5ef1e commit 5ba6a0a
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ public List<GraphQLResponse> awaitAndGetNextResponses(

await()
.atMost(timeout, TimeUnit.MILLISECONDS)
.until(() -> hasReachedExpectedResponses(numExpectedResponses));
.until(() -> state.getResponses().size() >= numExpectedResponses);

if (stopAfter) {
stop();
Expand Down Expand Up @@ -334,10 +334,6 @@ public List<GraphQLResponse> awaitAndGetNextResponses(
}
}

private boolean hasReachedExpectedResponses(int numExpectedResponses) {
return state.getResponses().size() >= numExpectedResponses;
}

/**
* Waits a specified amount of time and asserts that no responses were received during that time.
*
Expand Down

0 comments on commit 5ba6a0a

Please sign in to comment.