minor cleanup

pull/502/head
Nitin 9 years ago
parent 8908411e41
commit b60f166681

@ -37,13 +37,13 @@ public class StatementTest
@Test
public void testStatementClose() throws SQLException
{
Assert.assertTrue("Totals connections not as expected", TestElf.getPool(ds).getTotalConnections() >= 1);
Assert.assertTrue("Total connections not as expected", TestElf.getPool(ds).getTotalConnections() >= 1);
Assert.assertTrue("Idle connections not as expected", TestElf.getPool(ds).getIdleConnections() >= 1);
Connection connection = ds.getConnection();
Assert.assertNotNull(connection);
Assert.assertTrue("Totals connections not as expected", TestElf.getPool(ds).getTotalConnections() >= 1);
Assert.assertTrue("Total connections not as expected", TestElf.getPool(ds).getTotalConnections() >= 1);
Assert.assertTrue("Idle connections not as expected", TestElf.getPool(ds).getIdleConnections() >= 0);
Statement statement = connection.createStatement();

@ -332,9 +332,9 @@ public class TestConnections
{
try {
HikariPool pool = TestElf.getPool(ds);
pool.logPoolState("Before acquire");
pool.logPoolState("Before acquire ");
Connection connection = ds.getConnection();
pool.logPoolState("After acquire");
pool.logPoolState("After acquire ");
quietlySleep(500);
connection.close();
}

Loading…
Cancel
Save