Commit Graph

1 Commits

Author SHA1 Message Date
Alexander Whitestone
57198eace7 test: add unit tests for multi_user_bridge.py (zero → 23)
Some checks failed
CI / test (pull_request) Failing after 1m4s
CI / validate (pull_request) Failing after 1m2s
Review Approval Gate / verify-review (pull_request) Failing after 8s
Closes #1503

multi_user_bridge.py (2888 lines) had zero test coverage. Any change
to this file could break multi-user functionality with no automated
detection.

23 tests across 5 test classes:

- TestPluginRegistry (7): register, unregister, list, fire hooks,
  override returns, thread-safe registration
- TestChatLogIsolation (8): room isolation, rolling buffer, history
  with limit/since, get_all_rooms, thread-safe logging, no cross-room
  leakage
- TestPresenceManager (6): enter/leave, get_players_in_room, room
  isolation, thread-safe concurrent operations
- TestConcurrentUsers (1): multi-user concurrent chat with room
  isolation verification (no cross-contamination)
- TestHealthResult/Endpoint (4): data structure tests
2026-04-14 23:01:10 -04:00