Repository navigation
Conversation
71dcb8b to
0115a24
Compare
0115a24 to
68dbc07
Compare
68dbc07 to
13a2698
Compare
13a2698 to
7125de6
Compare
7125de6 to
a0b2c58
Compare
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The edge-case test must be corrected to exercise the required one-node and self/fallback paths.
Review effort: Lite
Findings: 1
Open (1)
What changed in this PR
Adds test utilities and a stage-1 join edge-case test where the introducer is selected as s.
Changes:
- Adds
poll_until_somefor async test coordination. - Refactors existing tests to use the helper.
- Adds introducer-as-
sjoin test coverage.
| File | Summary |
|---|---|
src/node/testutil.rs |
Adds the shared polling helper. |
src/node/base_node.rs |
Refactors polling and adds the edge-case test; the fixture does not exercise the one-node z = None path or the real search_by_id fallback. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
@claude review |
|
Claude finished @thep2p's task —— View job Review: PR #140
SummaryThis is a clean, well-targeted test-only change. It adds Correctness verificationI traced the new test against the production path and it holds up:
On the Copilot finding + renameThe renamed title Minor / non-blocking
NoteI was unable to run No blocking issues found. |
There was a problem hiding this comment.
Clean, test-only change. Traced the new test_join_stage1_link_level0_introducer_is_the_closest against the production path (search direction, s==introducer not tripping the collision guard, and slot mapping via send_link_request's dir.opposite plus handle_set_link_response's belongs_in_own_slot gate) — assertions are consistent with the real write path. The rename resolves Copilot's misleading-name concern, and the author's rebuttal is correct: the Some(z)/z=None arms are orthogonal to s==introducer, so splitting z=None into a separate PR loses no coverage. poll_until_some is a nice de-dup. Non-blocking: its doc references a wait_until I could not locate in testutil.rs (possibly stale). Could not run cargo test/clippy in this environment; verdict is from static analysis.
|
|

Summary
Test plan