Consistency Tests for Connection Management and Events
- Dominant language
- Rust
- Stars
- 74
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
Tx5 encapsulates some complexity in terms of connection management, and downstream crates depend on consistent behavior. We may need to build in some affordances for triggering certain conditions in order to even test some scenarios.
We need to build consistency tests for the following:
- https://github.com/holochain/tx5/issues/130
- [ ] Preflight callbacks are invoked always and only when a new connection is established. Specifically, they are only invoked once whether we are able to upgrade to webrtc or if we are switching to fallback messaging given the consistent behavior of the bullet point above. If a "Disconnected" event is emitted (indicating the connection is closed), then preflight checks are again run next time a connection is established with that peer.
- [ ] A "Connected" event is always and only emitted once after preflight callbacks are successful given the consistent behavior of the bullet point above.
Contributor guide
Research direction
Start by reviewing the Tx5 connection-management and event-handling paths, with issue #130 as the related behavior reference. Build consistency tests for preflight callbacks and Connected events, including WebRTC upgrade, fallback messaging, and reconnection after Disconnected; done means each listed condition is verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- networking, testing-qa
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100