Skip to content

Commit

Permalink
[misc] test stability improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
rusher committed Nov 7, 2024
1 parent c47e585 commit 089cbec
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -528,6 +529,7 @@ private void checkBigLocalInfile(long fileSize) throws Exception {
}
assertFalse(rs.next());
}
connection.rollback();
}
}

Expand Down

0 comments on commit 089cbec

Please sign in to comment.