[test][node] Cover join stage-1 with no known right neighbor - #141
Conversation
b3343b9 to
1ea3dff
Compare
1ea3dff to
dd6863e
Compare
dd6863e to
98cbcd6
Compare
8e4ab3e to
5619ba8
Compare
5619ba8 to
86b51db
Compare
86b51db to
b898a24
Compare
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The reviewed test changes are complete and introduce no unresolved issues.
Review effort: Lite
Findings: None
What changed in this PR
Adds regression coverage for stage-1 joining when the predecessor has no right neighbor.
Changes:
- Verifies only one link request is sent.
- Confirms the join completes with the right table entry unset.
| File | Description |
|---|---|
src/node/base_node.rs |
Adds the no-right-neighbor stage-1 join test. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Claude (@claude) review |
|
Claude finished TheP2P (@thep2p)'s task —— View job PR Review: Join stage-1, no right neighbor
Verdict: Approve ✅This is a clean, well-scoped test-only PR. The new test faithfully exercises the production What I verified1. The test mirrors real behavior. In 2. Direction logic is right. 3. The Minor observations (non-blocking)
Nice incremental coverage for #90. |
There was a problem hiding this comment.
Clean, well-scoped test-only PR. The new test faithfully exercises the production None-branch of join_stage1_link_level0 (only search_link is awaited, no second link request), the direction logic matches production (introducer < node_id => search Right, query Left), and the poll_until_some refactor preserves bounded-poll semantics while cutting repetition. Approving. Note: relied on CI for fmt/clippy/test as I couldn't run cargo locally.
Summary
Test plan