[loop-cycle] fix: three-strike route test isolation for xdist #1254
Reference in New Issue
Block a user
Delete Branch "fix/three-strike-test-isolation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes 2 flaky test failures on main:
test_record_strike_firstandtest_third_strike_returns_409.Root cause: hardcoded keys in three-strike route tests collided across parallel xdist workers and repeated runs on the shared SQLite DB.
Fix: each test generates a uuid4-based unique key.
435/435 tests pass after fix.