antithesis-tests: Don't fail tests on ProgrammingError

The ProgrammingError exception is thrown when tables, indexes, or
columns are dropped in parallel. Let's not fail the Antithesis test
drivers when that happens.
This commit is contained in:
Pekka Enberg
2025-10-21 19:18:43 +03:00
parent d2d995a9c0
commit 4805c6b06b
9 changed files with 67 additions and 23 deletions

View File

@@ -126,6 +126,10 @@ try:
con.commit()
con_init.commit()
except turso.ProgrammingError as e:
print(f"Table/column might have been dropped in parallel: {e}")
con.rollback()
con_init.rollback()
except turso.OperationalError as e:
print(f"Failed to alter table: {e}")
con.rollback()