Tests clear flow tombstones between modules with the other engine rows, and the tombstone test commits its prune before checking the count, so a wrong count no longer holds the write lock over the tests after it

This commit is contained in:
2026-11-02 19:14:59 +01:00
parent d4a1b1db47
commit fd637e0f1e
2 changed files with 10 additions and 3 deletions
+4 -1
View File
@@ -18,6 +18,7 @@ from fluksio.main import app
from fluksio.models import (
EngineEvent,
FlowRun,
FlowTombstone,
MetricBucket,
Run,
RunArtifact,
@@ -69,7 +70,8 @@ def db() -> Generator[Session, None, None]:
#: Tables the engine writes to on its own, from the collector and the run
#: service the module-scoped app starts.
#: service the module-scoped app starts, and the tombstones a flow deleted
#: through it leaves for that history.
_ENGINE_TABLES = (
RunArtifact,
RunMetric,
@@ -78,6 +80,7 @@ _ENGINE_TABLES = (
FlowRun,
EngineEvent,
MetricBucket,
FlowTombstone,
)