Merge #16422: test: remove redundant setup in addrman_tests

5c3c24cf9eab7bf19a9201599e93955cace5c154 test: remove redundant setup in addrman_tests (zenosage)

Pull request description:

  #10765 make this default behavior. No reason to keep these line.

Top commit has no ACKs.

Tree-SHA512: 545eea9c2d0741a75708f288f2c8752534ecaa6d54a9d014ef9afa295b0d075007704b64809eec090023703f47753e8ec755d22c9ccecf57b75f6898f6b708dd
This commit is contained in:
MarcoFalke 2019-07-19 10:18:19 -04:00 committed by pasta
parent f2bb2844a0
commit 2d5e50e6a4

View File

@ -798,9 +798,6 @@ BOOST_AUTO_TEST_CASE(addrman_selecttriedcollision)
{ {
CAddrManTest addrman; CAddrManTest addrman;
// Set addrman addr placement to be deterministic.
addrman.MakeDeterministic();
BOOST_CHECK(addrman.size() == 0); BOOST_CHECK(addrman.size() == 0);
// Empty addrman should return blank addrman info. // Empty addrman should return blank addrman info.
@ -833,9 +830,6 @@ BOOST_AUTO_TEST_CASE(addrman_noevict)
{ {
CAddrManTest addrman; CAddrManTest addrman;
// Set addrman addr placement to be deterministic.
addrman.MakeDeterministic();
// Add twenty two addresses. // Add twenty two addresses.
CNetAddr source = ResolveIP("252.2.2.2"); CNetAddr source = ResolveIP("252.2.2.2");
for (unsigned int i = 1; i < 23; i++) { for (unsigned int i = 1; i < 23; i++) {
@ -892,9 +886,6 @@ BOOST_AUTO_TEST_CASE(addrman_evictionworks)
{ {
CAddrManTest addrman; CAddrManTest addrman;
// Set addrman addr placement to be deterministic.
addrman.MakeDeterministic();
BOOST_CHECK(addrman.size() == 0); BOOST_CHECK(addrman.size() == 0);
// Empty addrman should return blank addrman info. // Empty addrman should return blank addrman info.