antithesis: Relax connect failure check

We also want to just ignore this under Antithesis:

``´
limbo.DatabaseError: Failed to open database: LockingError("Failed locking file. File is locked by another process")
```
This commit is contained in:
Pekka Enberg
2025-06-24 15:47:21 +03:00
parent 6c8aa4e043
commit 28c2d24931
4 changed files with 4 additions and 4 deletions

View File

@@ -26,7 +26,7 @@ cols = [f"col_{col}" for col in range(tbl_schema["colCount"]) if col != pk]
try:
con = limbo.connect("stress_composer.db")
except limbo.OperationalError as e:
except Exception as e:
print(f"Failed to open stress_composer.db. Exiting... {e}")
exit(0)
cur = con.cursor()

View File

@@ -22,7 +22,7 @@ cols = ", ".join([f"col_{col}" for col in range(tbl_schema["colCount"])])
try:
con = limbo.connect("stress_composer.db")
except limbo.OperationalError as e:
except Exception as e:
print(f"Failed to open stress_composer.db. Exiting... {e}")
exit(0)

View File

@@ -22,7 +22,7 @@ cols = ", ".join([f"col_{col}" for col in range(tbl_schema["colCount"])])
try:
con = limbo.connect("stress_composer.db")
except limbo.OperationalError as e:
except Exception as e:
print(f"Failed to open stress_composer.db. Exiting... {e}")
exit(0)
cur = con.cursor()

View File

@@ -26,7 +26,7 @@ cols = [f"col_{col}" for col in range(tbl_schema["colCount"]) if col != pk]
# print(cols)
try:
con = limbo.connect("stress_composer.db")
except limbo.OperationalError as e:
except Exception as e:
print(f"Failed to open stress_composer.db. Exiting... {e}")
exit(0)
cur = con.cursor()