Fix all failing tests — test isolation, data race, flaky handoff #173

Closed
opened 2026-03-02 23:20:05 +00:00 by ash · 0 comments
Owner

Three test failures:

  1. TestRebuild_Postgres / TestRebuildConcurrent_Postgres — global reader reads ALL events from shared table, fails to unmarshal struct events as strings
  2. TestIntegration_SSE_PGStore_Watch — gap detector blocks on non-contiguous IDs from other test runs
  3. TestLeaderLock_HandoffOnStop — data race in memReader test helper + flaky fixed-sleep timing

Fixes:

  • cleanEvents() helper truncates events table before global reader tests
  • Mutex on memReader test helper
  • Poll loop instead of fixed sleep for handoff test
Three test failures: 1. **TestRebuild_Postgres / TestRebuildConcurrent_Postgres** — global reader reads ALL events from shared table, fails to unmarshal struct events as strings 2. **TestIntegration_SSE_PGStore_Watch** — gap detector blocks on non-contiguous IDs from other test runs 3. **TestLeaderLock_HandoffOnStop** — data race in memReader test helper + flaky fixed-sleep timing Fixes: - `cleanEvents()` helper truncates events table before global reader tests - Mutex on memReader test helper - Poll loop instead of fixed sleep for handoff test
ash closed this issue 2026-03-02 23:20:19 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ash/eskit#173
No description provided.