bothClientAndServerDone.countDown();
}
}).toBlocking().last();
bothClientAndServerDone.await(1, TimeUnit.MINUTES);
clientCloseListener.waitForClose(1, TimeUnit.MINUTES);
serverCloseListener.waitForClose(1, TimeUnit.MINUTES);
Assert.assertTrue("Invalid TCP Server metric callbacks: " + listener.getEventTypeVsInvalidInvocations(),
listener.getEventTypeVsInvalidInvocations().isEmpty());
Assert.assertTrue("Invalid HTTP Server metric callbacks: " + listener.getHttpEventTypeVsInvalidInvocations(),