test: fix intermittent failure in p2p_addr_selfannouncement #34204

pull 0xB10C wants to merge 1 commits into bitcoin:master from 0xB10C:2026-01-fix-addrselfanouncement-test changing 1 files +1 −1
  1. 0xB10C commented at 3:56 pm on January 5, 2026: contributor

    Due to the mocktime being bumped before the expected time is updated, it could happen that the self-announcement is send with an newer timestamp than what we expect. To fix this, update the expected time before we bump the mocktime.

    closes #34159

  2. test: fix intermittent failure in p2p_addr_selfannouncement
    Due to the mocktime being bumped before the expected time is updated,
    it could happen that the self-announcement is send with an newer
    timestamp than what we expect. To fix this, update the expected time
    before we bump the mocktime.
    
    closes #34159
    31852057ea
  3. DrahtBot added the label Tests on Jan 5, 2026
  4. DrahtBot commented at 3:56 pm on January 5, 2026: contributor

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

    Code Coverage & Benchmarks

    For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/34204.

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    ACK bensig, maflcko, w0xlt, naiyoma

    If your review is incorrectly listed, please copy-paste <!–meta-tag:bot-skip–> into the comment that the bot should ignore.

  5. 0xB10C commented at 4:02 pm on January 5, 2026: contributor
  6. bensig commented at 6:16 pm on January 5, 2026: contributor

    ACK 31852057ea393e64b7ea2bfabc75a55fda40b786

    Tested on macOS - p2p_addr_selfannouncement.py passes.

    The fix is sane - set expected time before bumping mocktime to avoid the race where self-announcement could be sent with a timestamp newer than expected.

  7. maflcko commented at 7:34 am on January 6, 2026: member
    lgtm ACK 31852057ea393e64b7ea2bfabc75a55fda40b786
  8. maflcko added this to the milestone 31.0 on Jan 6, 2026
  9. naiyoma commented at 9:22 am on January 6, 2026: contributor
    utACK 31852057ea393e64b7ea2bfabc75a55fda40b786
  10. fanquake merged this on Jan 6, 2026
  11. fanquake closed this on Jan 6, 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-01-12 00:13 UTC

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