Skip to content

Commit

Permalink
fix(test): handle empty log
Browse files Browse the repository at this point in the history
  • Loading branch information
david-leifker committed Mar 3, 2025
1 parent 12eb0cd commit be0d86b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ private void assertSQL(
ArrayList::new,
(ArrayList<String> list, String sql) -> {
// fold into previous line
if (sql.startsWith("txn[] -- ")) {
if (sql.startsWith("txn[] -- ") && !list.isEmpty()) {
String current = list.get(list.size() - 1);
list.set(list.size() - 1, current + "\n" + sql);
} else {
Expand Down

0 comments on commit be0d86b

Please sign in to comment.