|
17 | 17 | import java.util.concurrent.atomic.AtomicReference; |
18 | 18 |
|
19 | 19 | import org.junit.jupiter.api.Test; |
20 | | -import org.junit.jupiter.api.Disabled; |
21 | 20 |
|
22 | 21 | import ch.qos.logback.classic.spi.ILoggingEvent; |
23 | 22 | import io.reactivex.Completable; |
@@ -2584,14 +2583,14 @@ public void throwFromOnHandlerRunsAllHandlers() { |
2584 | 2583 | value2.set(param1); |
2585 | 2584 | }, String.class); |
2586 | 2585 |
|
2587 | | - hubConnection.start().timeout(1, TimeUnit.SECONDS).blockingAwait(); |
| 2586 | + hubConnection.start().timeout(30, TimeUnit.SECONDS).blockingAwait(); |
2588 | 2587 | mockTransport.receiveMessage("{\"type\":1,\"target\":\"inc\",\"arguments\":[\"Hello World\"]}" + RECORD_SEPARATOR); |
2589 | 2588 |
|
2590 | 2589 | // Confirming that our handler was called and the correct message was passed in. |
2591 | 2590 | assertEquals("Hello World", value1.get()); |
2592 | 2591 | assertEquals("Hello World", value2.get()); |
2593 | 2592 |
|
2594 | | - hubConnection.stop().timeout(1, TimeUnit.SECONDS).blockingAwait(); |
| 2593 | + hubConnection.stop().timeout(30, TimeUnit.SECONDS).blockingAwait(); |
2595 | 2594 |
|
2596 | 2595 | ILoggingEvent log = logger.assertLog("Invoking client side method 'inc' failed:"); |
2597 | 2596 | assertEquals("throw from on handler", log.getThrowableProxy().getMessage()); |
@@ -3190,15 +3189,14 @@ public void stopWithoutObservingWithLongPollingTransportStops() { |
3190 | 3189 | closed.onComplete(); |
3191 | 3190 | }); |
3192 | 3191 |
|
3193 | | - hubConnection.start().timeout(1, TimeUnit.SECONDS).blockingAwait(); |
| 3192 | + hubConnection.start().timeout(30, TimeUnit.SECONDS).blockingAwait(); |
3194 | 3193 |
|
3195 | 3194 | hubConnection.stop(); |
3196 | | - closed.timeout(1, TimeUnit.SECONDS).blockingAwait(); |
| 3195 | + closed.timeout(30, TimeUnit.SECONDS).blockingAwait(); |
3197 | 3196 | blockGet.onComplete(); |
3198 | 3197 | assertEquals(HubConnectionState.DISCONNECTED, hubConnection.getConnectionState()); |
3199 | 3198 | } |
3200 | 3199 |
|
3201 | | - @Disabled |
3202 | 3200 | @Test |
3203 | 3201 | public void hubConnectionClosesAndRunsOnClosedCallbackAfterCloseMessageWithLongPolling() { |
3204 | 3202 | AtomicInteger requestCount = new AtomicInteger(0); |
@@ -3229,12 +3227,12 @@ public void hubConnectionClosesAndRunsOnClosedCallbackAfterCloseMessageWithLongP |
3229 | 3227 | hubConnection.onClosed((ex) -> { |
3230 | 3228 | closed.onComplete(); |
3231 | 3229 | }); |
3232 | | - hubConnection.start().timeout(1, TimeUnit.SECONDS).blockingAwait(); |
| 3230 | + hubConnection.start().timeout(30, TimeUnit.SECONDS).blockingAwait(); |
3233 | 3231 |
|
3234 | 3232 | assertEquals(HubConnectionState.CONNECTED, hubConnection.getConnectionState()); |
3235 | 3233 | blockGet.onComplete(); |
3236 | 3234 |
|
3237 | | - closed.timeout(1, TimeUnit.SECONDS).blockingAwait(); |
| 3235 | + closed.timeout(30, TimeUnit.SECONDS).blockingAwait(); |
3238 | 3236 |
|
3239 | 3237 | assertEquals(HubConnectionState.DISCONNECTED, hubConnection.getConnectionState()); |
3240 | 3238 | } |
|
0 commit comments