|
|
|
@ -257,8 +257,7 @@ BOOST_AUTO_TEST_CASE(addrman_tried_collisions)
@@ -257,8 +257,7 @@ BOOST_AUTO_TEST_CASE(addrman_tried_collisions)
|
|
|
|
|
addrman.Good(CAddress(addr, NODE_NONE)); |
|
|
|
|
|
|
|
|
|
//Test 15: No collision in tried table yet.
|
|
|
|
|
BOOST_TEST_MESSAGE(addrman.size()); |
|
|
|
|
BOOST_CHECK(addrman.size() == i); |
|
|
|
|
BOOST_CHECK_EQUAL(addrman.size(), i); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//Test 16: tried table collision!
|
|
|
|
@ -543,4 +542,4 @@ BOOST_AUTO_TEST_CASE(caddrinfo_get_new_bucket)
@@ -543,4 +542,4 @@ BOOST_AUTO_TEST_CASE(caddrinfo_get_new_bucket)
|
|
|
|
|
// than 64 buckets.
|
|
|
|
|
BOOST_CHECK(buckets.size() > 64); |
|
|
|
|
} |
|
|
|
|
BOOST_AUTO_TEST_SUITE_END() |
|
|
|
|
BOOST_AUTO_TEST_SUITE_END() |
|
|
|
|