Files
logos-messaging-nim/tests
Ivan FBandClaude Opus 5 8b24da7d90 test(postgres): pin the guards with tests that fail without them
Only regression tests: every one of them was checked to go red when the guard
it covers is reverted, and green again with it in place.

- a long error reaching the caller whole, and a half-built partition being
  completed: both fail if the truncation in check() comes back
- a creation deferred while another session holds the advisory lock: fails if
  the sequence no longer stops at the first deferral, since the partition
  tracking is only updated by the last line of a sequence that ran to the end
- the classification of the outcomes a concurrent maintenance produces, with
  the messages the fleets actually logged: fails if a signature is dropped

`addPartition` and the outcome classifier are exported to be reachable from
the tests, the advisory lock id gets a name so a test can hold the same lock,
and close() tolerates a driver whose partition factory was never started,
which is the driver shape the deferral test needs.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-21 16:46:43 +02:00
..
2026-08-06 22:43:51 -03:00