test: sync injected qsigshare in llmq signing test#7304
test: sync injected qsigshare in llmq signing test#7304thepastaclaw wants to merge 1 commit intodashpay:developfrom
Conversation
✅ No Merge Conflicts DetectedThis PR currently has no conflicts with other open PRs. |
|
✅ Review complete (commit 7c4f221) |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThis change modifies a functional test for LLMQ signing by adding a synchronization step in the Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Review rate limit: 7/8 reviews remaining, refill in 7 minutes and 30 seconds.Comment |
thepastaclaw
left a comment
There was a problem hiding this comment.
Code Review
Single-line test fix adding sync_with_ping() after a direct qsigshare injection in feature_llmq_signing.py to eliminate a documented race against wait_for_sigs. Both reviewers converged that the change is minimal and correct. Only a stylistic nitpick remains.
Reviewed commit: 7c4f221
💬 1 nitpick(s)
| p2p_interface.send_message(msg_qsigshare([sig_share])) | ||
| p2p_interface.sync_with_ping() |
There was a problem hiding this comment.
💬 Nitpick: Could collapse to existing send_and_ping helper
P2PInterface.send_and_ping(message) in test/functional/test_framework/p2p.py is exactly send_message followed by sync_with_ping, and is the idiomatic form used elsewhere in the suite. Replacing the two calls with p2p_interface.send_and_ping(msg_qsigshare([sig_share])) shaves a line and matches the established pattern. Purely stylistic — the explicit form is equally correct and arguably clearer about intent.
💡 Suggested change
| p2p_interface.send_message(msg_qsigshare([sig_share])) | |
| p2p_interface.sync_with_ping() | |
| p2p_interface.send_and_ping(msg_qsigshare([sig_share])) |
source: ['claude']
|
Thanks — I checked #7301. It adds |
Summary
qsigshareinjection infeature_llmq_signing.py --spork21withsync_with_ping().removing the async race before them.
Fixes #7255.
Validation
Passed locally on macOS arm64:
Pre-PR code review gate passed with recommendation: ship.