Skip to content

chore: Expand test coverage for mailbox and transit#1

Merged
imthaghost merged 2 commits into
mainfrom
chore/test-coverage
May 4, 2026
Merged

chore: Expand test coverage for mailbox and transit#1
imthaghost merged 2 commits into
mainfrom
chore/test-coverage

Conversation

@imthaghost

@imthaghost imthaghost commented May 4, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds 14 new mailbox tests across protocol, state, and a full WebSocket session driving welcome → bind → allocate → claim → open → add → message routing
  • Adds 4 new transit tests covering peer-wait timeout, multiple independent pairs, EOF propagation through the relay, and a 256 KiB bidirectional transfer
  • No production-code behavior changes; one minor refactor in mailbox/src/server.rs split run() into bind+serve so tests can use ephemeral ports

Test plan

  • cargo test -p blackhole-mailbox - 32 tests, all green
  • cargo test -p blackhole-transit - 7 tests, all green
  • Full workspace cargo check --workspace clean

@imthaghost imthaghost merged commit 85f63b4 into main May 4, 2026
5 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant