test: fix port collision in feature_torcontrol.py #37075

pull ViniciusCestarii wants to merge 1 commits into bitcoin:master from ViniciusCestarii:fix-flaky-feature-torcontrol changing 2 files +2 −2
  1. ViniciusCestarii commented at 9:01 PM on December 2, 2026: contributor

    Closes #37067

    feature_torcontrol.py makes 11 next_port() calls starting at p2p_port(2), so the last one uses p2p_port(12), which is node0's P2P port in the test with the next portseed.

    Start at p2p_port(1) instead and tighten the off-by-one assert in p2p_port so this fails deterministically.

  2. test: fix port collision in feature_torcontrol.py 9b28baef95
  3. DrahtBot added the label Tests on Dec 2, 2026
  4. DrahtBot commented at 9:01 PM on December 2, 2026: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--006a51241073e994b41acfe9ec718e94-->

    External sites

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline and AI policy for information on the review process.

    Type Reviewers
    ACK maflcko, hebasto

    If your review is incorrectly listed, please copy-paste <code>&lt;!--meta-tag:bot-skip--&gt;</code> into the comment that the bot should ignore.

    <!--5faf32d7da4f0f540f40219e4f7537a3-->

  5. ViniciusCestarii marked this as ready for review on Dec 2, 2026
  6. fanquake added this to the milestone 33.0 on Dec 2, 2026
  7. maflcko commented at 6:52 AM on December 3, 2026: member

    Ah thx. I wondered why the assert didn't hit

    lgtm ACK 9b28baef9591bc3f35a30028402d586ef5ca85f6

  8. hebasto approved
  9. hebasto commented at 9:03 AM on December 3, 2026: member

    ACK 9b28baef9591bc3f35a30028402d586ef5ca85f6, I have reviewed the code and it looks OK.

  10. fanquake merged this on Dec 3, 2026
  11. fanquake closed this on Dec 3, 2026


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-12-04 12:51 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me