Fix for SslSelectorTest.testCloseConnectionInClosingState
Ensure that sends are completed before waiting for channel to be closed based on idle expiry, since channel will not be expired if added to ready keys in the next poll as a result of pending sends.
Reviewers: Jun Rao
@@ -418,7 +418,9 @@ public class SelectorTest {
selector.mute(id);
for (int i = 0; i <= maxStagedReceives; i++) {
selector.send(createSend(id, String.valueOf(i)));
+ do {
selector.poll(1000);
+ } while (selector.completedSends().isEmpty());
}
selector.unmute(id);
