Increase more SignalR Java client test timeouts (#26036)
Co-authored-by: Stephen Halter <halter73@gmail.com>
This commit is contained in:
parent
140f177d9e
commit
bf91253cd3
|
|
@ -2515,14 +2515,14 @@ class HubConnectionTest {
|
|||
value2.set(param1);
|
||||
}, String.class);
|
||||
|
||||
hubConnection.start().timeout(1, TimeUnit.SECONDS).blockingAwait();
|
||||
hubConnection.start().timeout(30, TimeUnit.SECONDS).blockingAwait();
|
||||
mockTransport.receiveMessage("{\"type\":1,\"target\":\"inc\",\"arguments\":[\"Hello World\"]}" + RECORD_SEPARATOR);
|
||||
|
||||
// Confirming that our handler was called and the correct message was passed in.
|
||||
assertEquals("Hello World", value1.get());
|
||||
assertEquals("Hello World", value2.get());
|
||||
|
||||
hubConnection.stop().timeout(1, TimeUnit.SECONDS).blockingAwait();
|
||||
hubConnection.stop().timeout(30, TimeUnit.SECONDS).blockingAwait();
|
||||
|
||||
ILoggingEvent log = logger.assertLog("Invoking client side method 'inc' failed:");
|
||||
assertEquals("throw from on handler", log.getThrowableProxy().getMessage());
|
||||
|
|
|
|||
|
|
@ -392,7 +392,7 @@ public class LongPollingTransportTest {
|
|||
Map<String, String> headers = new HashMap<>();
|
||||
LongPollingTransport transport = new LongPollingTransport(headers, client, Single.just(""));
|
||||
|
||||
transport.start("http://example.com").timeout(100, TimeUnit.SECONDS).blockingAwait();
|
||||
transport.start("http://example.com").timeout(30, TimeUnit.SECONDS).blockingAwait();
|
||||
|
||||
RuntimeException exception = assertThrows(RuntimeException.class, () -> transport.stop().blockingAwait(100, TimeUnit.SECONDS));
|
||||
assertEquals("Request has no handler: DELETE http://example.com", exception.getMessage());
|
||||
|
|
|
|||
Loading…
Reference in New Issue