mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-31 22:04:23 +01:00
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:
@@ -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()
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user