mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-18 17:14:20 +01:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user