Skip to content

Commit

Permalink
[misc] MySQL test speed improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
rusher committed Oct 15, 2024
1 parent 457561a commit 418a157
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/test/java/org/mariadb/jdbc/integration/ErrorTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ private void testPre41ErrorFormat(Connection con) throws Exception {

@Test
public void deadLockInformation() throws SQLException {
// skip for mysql, since idle_transaction_timeout doesn't exist, so test takes too much time
Assumptions.assumeTrue(isMariaDBServer());

Statement stmt = sharedConn.createStatement();
stmt.execute("insert into deadlock(a) values(0), (1)");

Expand All @@ -132,6 +135,7 @@ public void deadLockInformation() throws SQLException {
try {
stmt2.execute("SET SESSION idle_transaction_timeout=2, innodb_lock_wait_timeout=2");
} catch (SQLException e) {
e.printStackTrace();
// eat ( for mariadb >= 10.3)
}
stmt2.execute("start transaction");
Expand Down

0 comments on commit 418a157

Please sign in to comment.