Skip to content

Commit

Permalink
INT-3146 Fix Another Test Timing Issue
Browse files Browse the repository at this point in the history
Increase test timer for soTimeout detection.
  • Loading branch information
garyrussell committed Sep 24, 2013
1 parent 7517963 commit 00d9ba5
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -366,13 +366,16 @@ public void testCloseOnTimeoutNio() throws Exception {
testCloseOnTimeoutGuts(cf);
}

private void testCloseOnTimeoutGuts(AbstractClientConnectionFactory cf) throws Exception, InterruptedException {
private void testCloseOnTimeoutGuts(AbstractClientConnectionFactory cf) throws Exception {
TestingUtilities.waitListening(serverCf, null);
cf.setSoTimeout(100);
CachingClientConnectionFactory cccf = new CachingClientConnectionFactory(cf, 1);
cccf.start();
TcpConnection connection = cccf.getConnection();
Thread.sleep(200);
int n = 0;
while (n++ < 100 && connection.isOpen()) {
Thread.sleep(100);
}
assertFalse(connection.isOpen());
cccf.stop();
}
Expand Down

0 comments on commit 00d9ba5

Please sign in to comment.