Files
PaperClipAI/server/src/__tests__
Devin FoleyandPaperclip 5b1de388ef Wait for restart backup cleanup before ending startup tests
The retry marker is removed before its directory sync and work receipt
finish. Wait for both the marker and active-work count so the next
startup test cannot overlap unfinished backup persistence.

Verified all 35 server startup tests.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-08 15:25:24 -07:00
..
…

Server Tests

Server tests that need a real PostgreSQL process must use ./helpers/embedded-postgres.ts instead of constructing embedded-postgres directly.

The shared helper creates a throwaway data directory and a reserved-safe loopback port for each test database. This protects the live Paperclip control-plane Postgres from server vitest runs; see PAP-2033 for the incident that introduced this guard.