diff --git a/src/test/java/org/mariadb/jdbc/integration/LocalInfileTest.java b/src/test/java/org/mariadb/jdbc/integration/LocalInfileTest.java index f525b0ff1..7af799412 100644 --- a/src/test/java/org/mariadb/jdbc/integration/LocalInfileTest.java +++ b/src/test/java/org/mariadb/jdbc/integration/LocalInfileTest.java @@ -508,6 +508,7 @@ private void checkBigLocalInfile(long fileSize) throws Exception { try (Connection connection = createCon("allowLocalInfile")) { Statement stmt = connection.createStatement(); stmt.execute("truncate `infile`"); + stmt.execute("START TRANSACTION"); File file = createTmpData(recordNumber); int insertNumber = stmt.executeUpdate( @@ -528,6 +529,7 @@ private void checkBigLocalInfile(long fileSize) throws Exception { } assertFalse(rs.next()); } + connection.rollback(); } }