Skip to content

Commit

Permalink
CAddrManTest: remove redundant MakeDeterministic call.
Browse files Browse the repository at this point in the history
  • Loading branch information
furszy committed Jul 28, 2021
1 parent fd51941 commit 718f1df
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/test/addrman_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,9 @@

class CAddrManTest : public CAddrMan
{
uint64_t state;

public:
CAddrManTest(bool makeDeterministic = true)
{
state = 1;

if (makeDeterministic) {
// Set addrman addr placement to be deterministic.
MakeDeterministic();
Expand Down Expand Up @@ -531,9 +527,6 @@ BOOST_AUTO_TEST_CASE(addrman_selecttriedcollision)
{
CAddrManTest addrman;

// Set addrman addr placement to be deterministic.
addrman.MakeDeterministic();

BOOST_CHECK(addrman.size() == 0);

// Empty addrman should return blank addrman info.
Expand Down Expand Up @@ -566,9 +559,6 @@ BOOST_AUTO_TEST_CASE(addrman_noevict)
{
CAddrManTest addrman;

// Set addrman addr placement to be deterministic.
addrman.MakeDeterministic();

// Add twenty two addresses.
CNetAddr source = ResolveIP("252.2.2.2");
for (unsigned int i = 1; i < 23; i++) {
Expand Down Expand Up @@ -625,9 +615,6 @@ BOOST_AUTO_TEST_CASE(addrman_evictionworks)
{
CAddrManTest addrman;

// Set addrman addr placement to be deterministic.
addrman.MakeDeterministic();

BOOST_CHECK(addrman.size() == 0);

// Empty addrman should return blank addrman info.
Expand Down

0 comments on commit 718f1df

Please sign in to comment.