Files
Aniworld/tests
Lukas 700415af57 Add concurrent scan operation tests (18 tests, all passing)
 COMPLETE: 18/18 tests passing

Test Coverage:
- Concurrent scan prevention: Second scan blocked, multiple attempts handled, lock released after completion
- Scan cancellation: Cancel active scan, cancel when none active, cancelled scans in history, new scan after cancellation
- Database race conditions: AsyncIO lock prevents races, scan state consistency with concurrent reads, thread-safe history updates
- Scan state consistency: is_scanning flag consistency, current_scan object consistency, status API consistency, concurrent status checks
- Scheduler prevention: Scheduler skips rescan if already running, properly sets scan_in_progress flag
- AnimeService: Ignores concurrent rescan requests

All concurrent operation scenarios validated with proper lock management and state consistency.
2026-02-01 11:25:11 +01:00
..
2025-12-23 18:13:10 +01:00
2025-11-15 12:35:51 +01:00