Add backend lifecycle regression tests and fix lifespan cleanup

This commit is contained in:
2026-04-06 20:56:57 +02:00
parent c2982116a8
commit 95f72018f7
3 changed files with 114 additions and 10 deletions

View File

@@ -39,7 +39,7 @@ Reference: `Docs/Refactoring.md` for full analysis of each issue.
### Reliability and Resilience
- **Add backend lifecycle tests for resource cleanup.**
- **Add backend lifecycle tests for resource cleanup.**
- Verify startup opens and initialises DB, HTTP session, scheduler, and geo cache correctly.
- Verify shutdown closes those resources cleanly.
@@ -77,4 +77,4 @@ Reference: `Docs/Refactoring.md` for full analysis of each issue.
3. ✅ Harden fail2ban client concurrency and packaging.
4. ✅ Convert setup guard to a safer startup-driven model.
5. ✅ Add deployment-safe configuration and production-ready CORS.
6. Add lifecycle and concurrency regression tests.
6. Add lifecycle and concurrency regression tests.