Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Commit 5ba6a0a

Browse files
committed
Fix package private exception handler tests
1 parent ac5ef1e commit 5ba6a0a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

graphql-spring-boot-test/src/main/java/com/graphql/spring/boot/test/GraphQLTestSubscription.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ public List<GraphQLResponse> awaitAndGetNextResponses(
302302

303303
await()
304304
.atMost(timeout, TimeUnit.MILLISECONDS)
305-
.until(() -> hasReachedExpectedResponses(numExpectedResponses));
305+
.until(() -> state.getResponses().size() >= numExpectedResponses);
306306

307307
if (stopAfter) {
308308
stop();
@@ -334,10 +334,6 @@ public List<GraphQLResponse> awaitAndGetNextResponses(
334334
}
335335
}
336336

337-
private boolean hasReachedExpectedResponses(int numExpectedResponses) {
338-
return state.getResponses().size() >= numExpectedResponses;
339-
}
340-
341337
/**
342338
* Waits a specified amount of time and asserts that no responses were received during that time.
343339
*

0 commit comments

Comments
 (0)