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

Commit ac5ef1e

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ public List<GraphQLResponse> awaitAndGetNextResponses(
335335
}
336336

337337
private boolean hasReachedExpectedResponses(int numExpectedResponses) {
338-
return (state.getResponses().size() == numExpectedResponses) || numExpectedResponses <= 0;
338+
return state.getResponses().size() >= numExpectedResponses;
339339
}
340340

341341
/**

0 commit comments

Comments
 (0)