Wait for stop to complete in SignalR test to prevent flakiness. (#7634)
This commit is contained in:
parent
639d290b19
commit
c806c5a61a
|
|
@ -1352,7 +1352,7 @@ class HubConnectionTest {
|
|||
hubConnection.start().timeout(1, TimeUnit.SECONDS).blockingAwait();
|
||||
|
||||
TimeUnit.MILLISECONDS.sleep(100);
|
||||
hubConnection.stop();
|
||||
hubConnection.stop().timeout(1, TimeUnit.SECONDS).blockingAwait();
|
||||
|
||||
String[] sentMessages = mockTransport.getSentMessages();
|
||||
assertTrue(sentMessages.length > 1);
|
||||
|
|
|
|||
Loading…
Reference in New Issue