amitiuttarwar
commented at 1:25 am on June 22, 2021:
contributor
A test refactor broken out from #21528 & a fix to #22243.
This PR:
consolidates the two helper classes into one, with the intent of making the test logic more clear & usable as we add more subtests to the file
hopefully fixes the test flakiness by bumping up the mocktime interval to ensure m_next_addr_send timer triggers
[test] Allow AddrReceiver to be used more generally
The `on_addr` functionality of `AddrReceiver` tests logic specific to how the
addr messages are set up in the test bodies. To allow other callers to also use
`AddrReceiver`, only apply the assertion logic if the caller indicates
desirability by setting `test_addr_contents` to true when initializing the
class.
09dc073cff
[test] Add functionality to AddrReceiver
Add two simple helper functions to `AddrReceiver` to support callers currently
using `GetAddrStore` [used in next commit].
e8c67ea19a
[test] Update GetAddrStore callers to use AddrReceiveref2f149bf2
[test] Remove GetAddrStore class1d8193e2a2
[test] Prevent intermittent issue
Since m_next_addr_send is on a Poisson distribution, increase the mocktime bump
to ensure we don't experience flakiness in the tests. Closes #22243.
6168eb06b2
fanquake added the label
Tests
on Jun 22, 2021
MarcoFalke added this to the milestone 22.0
on Jun 22, 2021
lsilva01 approved
lsilva01
commented at 6:07 pm on June 22, 2021:
contributor
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: 2024-12-19 15:12 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me