From 5ba6a0a9b595d585195f7ba74b0c92b6ce092986 Mon Sep 17 00:00:00 2001 From: Michiel Oliemans Date: Fri, 25 Dec 2020 16:05:07 +0100 Subject: [PATCH] Fix package private exception handler tests --- .../graphql/spring/boot/test/GraphQLTestSubscription.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/graphql-spring-boot-test/src/main/java/com/graphql/spring/boot/test/GraphQLTestSubscription.java b/graphql-spring-boot-test/src/main/java/com/graphql/spring/boot/test/GraphQLTestSubscription.java index 3379e43e..f368a1ae 100644 --- a/graphql-spring-boot-test/src/main/java/com/graphql/spring/boot/test/GraphQLTestSubscription.java +++ b/graphql-spring-boot-test/src/main/java/com/graphql/spring/boot/test/GraphQLTestSubscription.java @@ -302,7 +302,7 @@ public List awaitAndGetNextResponses( await() .atMost(timeout, TimeUnit.MILLISECONDS) - .until(() -> hasReachedExpectedResponses(numExpectedResponses)); + .until(() -> state.getResponses().size() >= numExpectedResponses); if (stopAfter) { stop(); @@ -334,10 +334,6 @@ public List 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. *