Skip to content

Conversation

@Warrows
Copy link

@Warrows Warrows commented May 19, 2019

Backport of bitcoin#6720 and bitcoin#7212

  • Adds several unittests for CAddrMan and CAddrInfo.
  • Makes small modifications to CAddrMan to allow deterministic and targeted tests.
  • Increases the accuracy of CAddrMan tests.
  • Removes non-determinism in tests by overriding the random number generator.
  • Extracts testing code from addrman class to test class.

One more step for #799.

@Warrows Warrows added the Tests label May 19, 2019
@Warrows Warrows self-assigned this May 19, 2019
@Warrows Warrows changed the title 2019 bitcoin bp 6720 [Tests] Add tests for CAddrMan May 19, 2019
@Warrows Warrows mentioned this pull request May 19, 2019
42 tasks
Copy link
Collaborator

@Fuzzbawls Fuzzbawls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

overall utACK, with some stylistic changes needed.

EthanHeilman and others added 3 commits May 27, 2019 12:23
Adds several unittests for addrman to verify it works as expected.
Makes small modifications to addrman to allow deterministic and targeted tests.
Adds several unittests for CAddrMan and CAddrInfo.
Increases the accuracy of addrman tests.
Removes non-determinism in tests by overriding the random number generator.
Extracts testing code from addrman class to test class.
@Warrows Warrows force-pushed the 2019_bitcoin-bp_6720 branch from b1add18 to c84e0e8 Compare May 27, 2019 10:24
@Warrows Warrows closed this May 27, 2019
@Warrows Warrows reopened this May 27, 2019
@Fuzzbawls Fuzzbawls added this to the 3.3.0 milestone May 28, 2019
Copy link

@Mrs-X Mrs-X left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@Fuzzbawls
Copy link
Collaborator

ACK c84e0e8

@Fuzzbawls Fuzzbawls merged commit c84e0e8 into PIVX-Project:master Jun 13, 2019
Fuzzbawls added a commit that referenced this pull request Jun 13, 2019
c84e0e8 [Code Style] Remove std namespace in test file (warrows)
3355c86 Increase test coverage for addrman and addrinfo (Ethan Heilman)
d4da015 Creates unittests for addrman, makes addrman testable. (EthanHeilman)

Tree-SHA512: cd960109d8f3bdc46dfd58da2136a748aa8ecb1b3bacfa031af0a1544bd90514fe71b8fc63650e61c5872c7a42febc986616252550a71c510bdc7f9e1ab87e0f
@Warrows Warrows deleted the 2019_bitcoin-bp_6720 branch June 16, 2019 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants