|
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()); |
@@ -3192,15 +3191,14 @@ public void stopWithoutObservingWithLongPollingTransportStops() { |
3192 | 3191 | closed.onComplete(); |
3193 | 3192 | }); |
3194 | 3193 |
|
3195 | | - hubConnection.start().timeout(1, TimeUnit.SECONDS).blockingAwait(); |
| 3194 | + hubConnection.start().timeout(30, TimeUnit.SECONDS).blockingAwait(); |
3196 | 3195 |
|
3197 | 3196 | hubConnection.stop(); |
3198 | | - closed.timeout(1, TimeUnit.SECONDS).blockingAwait(); |
| 3197 | + closed.timeout(30, TimeUnit.SECONDS).blockingAwait(); |
3199 | 3198 | blockGet.onComplete(); |
3200 | 3199 | assertEquals(HubConnectionState.DISCONNECTED, hubConnection.getConnectionState()); |
3201 | 3200 | } |
3202 | 3201 |
|
3203 | | - @Disabled |
3204 | 3202 | @Test |
3205 | 3203 | public void hubConnectionClosesAndRunsOnClosedCallbackAfterCloseMessageWithLongPolling() { |
3206 | 3204 | AtomicInteger requestCount = new AtomicInteger(0); |
@@ -3231,12 +3229,12 @@ public void hubConnectionClosesAndRunsOnClosedCallbackAfterCloseMessageWithLongP |
3231 | 3229 | hubConnection.onClosed((ex) -> { |
3232 | 3230 | closed.onComplete(); |
3233 | 3231 | }); |
3234 | | - hubConnection.start().timeout(1, TimeUnit.SECONDS).blockingAwait(); |
| 3232 | + hubConnection.start().timeout(30, TimeUnit.SECONDS).blockingAwait(); |
3235 | 3233 |
|
3236 | 3234 | assertEquals(HubConnectionState.CONNECTED, hubConnection.getConnectionState()); |
3237 | 3235 | blockGet.onComplete(); |
3238 | 3236 |
|
3239 | | - closed.timeout(1, TimeUnit.SECONDS).blockingAwait(); |
| 3237 | + closed.timeout(30, TimeUnit.SECONDS).blockingAwait(); |
3240 | 3238 |
|
3241 | 3239 | assertEquals(HubConnectionState.DISCONNECTED, hubConnection.getConnectionState()); |
3242 | 3240 | } |
|
0 commit comments