Wait for stop to complete in SignalR test to prevent flakiness. (#7634)

This commit is contained in:
Mikael Mengistu 2019-02-15 18:42:04 -08:00 committed by GitHub
parent 639d290b19
commit c806c5a61a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);