spaxel/mothership/internal/zones
jedarden e1552051e7 Fix portal crossing direction and health checker testability
- Fix portal crossing direction bug in collectCrossings: direction was
  determined by currSide (where blob is now), but should be determined
  by prevSide (where blob came from). A→B means blob was on A side before.
- Add Enabled: true to portal test fixtures so they participate in
  crossing detection (portals default to disabled).
- Refactor health.Checker: add injectable checkDB field defaulting to
  defaultCheckDB() for cleaner unit test overriding.
- Fix TestHealthCheckSheddingLevelJSON: use getShedLevel override instead
  of trying to poke shedder internals; fixes type mismatch in closure.
- Fix TestHealthCheckUptimeIncrement: backdate startTime to guarantee
  the second check crosses a 1-second boundary.
2026-04-15 14:40:37 -04:00
..
manager.go Fix portal crossing direction and health checker testability 2026-04-15 14:40:37 -04:00
manager_test.go Fix portal crossing direction and health checker testability 2026-04-15 14:40:37 -04:00