add sleep to allow file lock to be removed

This commit is contained in:
pedrocarlo
2025-06-09 16:15:00 -03:00
parent cb4efdbc19
commit c7799c8ec5

View File

@@ -4,6 +4,7 @@ import tempfile
from cli_tests.test_limbo_cli import TestLimboShell
from pydantic import BaseModel
from cli_tests import console
from time import sleep
sqlite_flags = os.getenv("SQLITE_FLAGS", "-q").split(" ")
@@ -140,14 +141,14 @@ def main():
tests = blob_tests()
for test in tests:
console.info(test)
with tempfile.NamedTemporaryFile(suffix='.db') as tmp:
with tempfile.NamedTemporaryFile(suffix=".db") as tmp:
test.db_path = tmp.name
try:
# Use with syntax to automatically close shell on error
with TestLimboShell("") as limbo:
limbo.execute_dot(f".open {test.db_path}")
test.run(limbo)
sleep(0.3)
test.test_compat()
except Exception as e: