Files
Aniworld/tests/unit
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-04 19:22:42 +01:00
2025-12-10 21:12:34 +01:00
2025-12-04 19:22:42 +01:00
2025-10-23 19:00:49 +02:00
2025-10-22 09:20:35 +02:00
2025-11-19 21:20:22 +01:00
2025-10-22 09:20:35 +02:00