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

Commit e55ab3c

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

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

graphql-spring-boot-test/src/test/java/com/graphql/spring/boot/test/GraphQLTestSubscriptionUsageErrorHandlingTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
44

5+
import org.awaitility.core.ConditionTimeoutException;
56
import org.junit.jupiter.api.DisplayName;
67
import org.junit.jupiter.api.Test;
78

@@ -21,9 +22,9 @@ void shouldRaiseAssertionErrorIfInitAfterInit() {
2122
void shouldRaiseAssertionErrorIfAwaitAndGetTimesOut() {
2223
graphQLTestSubscription
2324
.start(SUBSCRIPTION_THAT_TIMES_OUT_RESOURCE);
24-
assertThatExceptionOfType(AssertionError.class)
25+
assertThatExceptionOfType(ConditionTimeoutException.class)
2526
.isThrownBy(() -> graphQLTestSubscription
26-
.awaitAndGetNextResponse(TIMEOUT));
27+
.awaitAndGetNextResponse(110));
2728
}
2829

2930
@Test

0 commit comments

Comments
 (0)