Fix timing edge case in test.

pull/60/head
Brett Wooldridge 11 years ago
parent 5ba531c3d4
commit 9ff609b64b

@ -38,7 +38,8 @@ public class TestConnectionTimeoutRetry
catch (SQLException e)
{
long elapsed = System.currentTimeMillis() - start;
Assert.assertTrue("Didn't wait long enough for timeout", (elapsed > config.getConnectionTimeout()));
long timeout = config.getConnectionTimeout();
Assert.assertTrue("Didn't wait long enough for timeout", (elapsed >= timeout));
}
finally
{

Loading…
Cancel
Save