test: use explicit p2p objects where available #20022

pull guggero wants to merge 1 commits into bitcoin:master from guggero:p2p-conn-rename changing 2 files +2 −2
  1. guggero commented at 8:49 AM on September 26, 2020: contributor

    This is a follow-up patch to #19804 as suggested by MarcoFalke (https://github.com/bitcoin/bitcoin/pull/19804#discussion_r494950062).

    To make the intent of the tests easier to understand, we reference the p2p connection objects by their explicit names instead of the p2ps array.

  2. test: use explicit p2p objects where available
    To make the intent of the tests easier to understand, we reference the
    p2p connection objects by their explicit names instead of the p2ps array.
    0fcaf73199
  3. DrahtBot added the label Tests on Sep 26, 2020
  4. practicalswift commented at 10:29 AM on September 26, 2020: contributor

    Concept ACK

    Welcome (again) as a contributor @guggero! :)

  5. theStack approved
  6. theStack commented at 10:37 AM on September 26, 2020: member

    ACK 0fcaf731997c4989b869e42d8990f742637799c2 Identified the remaining p2ps[] accesses via git grep "\.p2ps\[" and verified that the tests p2p_getdata.py and wallet_resendwallettransactions.py have explicit p2p objects that can be used instead. The affected tests passed locally. 👌

  7. MarcoFalke merged this on Sep 26, 2020
  8. MarcoFalke closed this on Sep 26, 2020

  9. guggero deleted the branch on Sep 26, 2020
  10. Fabcien referenced this in commit 1217912166 on Oct 14, 2021
  11. DrahtBot locked this on Feb 15, 2022

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-04-17 12:14 UTC

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