Skip to content

Commit

Permalink
Merge pull request #6639: [BEAM-5709] Fix flaky tests in BeamFnContro…
Browse files Browse the repository at this point in the history
…lServiceTest.
  • Loading branch information
kennknowles committed Oct 12, 2018
2 parents 1b77b90 + 7bf7318 commit ca37470
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -88,6 +88,8 @@ public void testClientConnecting() throws Exception {
server.shutdown();
server.awaitTermination(1, TimeUnit.SECONDS);
server.shutdownNow();
Thread.sleep(1000); // Wait for stub to close stream.

verify(requestObserver).onCompleted();
verifyNoMoreInteractions(requestObserver);
}
Expand Down Expand Up @@ -126,6 +128,8 @@ public void testMultipleClientsConnecting() throws Exception {
server.shutdown();
server.awaitTermination(1, TimeUnit.SECONDS);
server.shutdownNow();
Thread.sleep(1000); // Wait for stub to close stream.

verify(requestObserver).onCompleted();
verifyNoMoreInteractions(requestObserver);
verify(anotherRequestObserver).onCompleted();
Expand Down

0 comments on commit ca37470

Please sign in to comment.