Skip to content

Commit

Permalink
[misc] delete test that is a race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
rusher committed Dec 7, 2015
1 parent 793f98b commit 9494c97
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions src/test/java/org/mariadb/jdbc/ServerPrepareStatementTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,31 +86,6 @@ public void serverCacheStatementTest() throws Throwable {
assertTrue(cacheSize + 1 == protocol.prepareStatementCache().size());
}

@Test
public void prepStmtCacheSizeTest1() throws Throwable {
Connection connection = null;
try {
connection = setConnection("&prepStmtCacheSize=10");

Statement statement = connection.createStatement();

ResultSet rs = statement.executeQuery("show global status like 'Prepared_stmt_count'");
rs.next();
int prepareServerStatement = rs.getInt(2);

connection.prepareStatement("INSERT INTO ServerPrepareStatementCacheSize3(test) "
+ "VALUES (?)");
rs = statement.executeQuery("show global status like 'Prepared_stmt_count'");
rs.next();
int prepareServerStatement2 = rs.getInt(2);
assertTrue(prepareServerStatement2 == prepareServerStatement + 1);

} finally {
connection.close();
}
}


@Test
public void prepStmtCacheSizeTest() throws Throwable {
Connection connection = null;
Expand Down

0 comments on commit 9494c97

Please sign in to comment.