@@ -389,7 +389,7 @@ FIXTURE_TEST_CASE(addrman_new_multiplicity, BasicTestingSetup)
389389 addrman->Add ({addr}, source);
390390 }
391391 AddressPosition addr_pos = addrman->FindAddressEntry (addr).value ();
392- CHECK (addr_pos.multiplicity == 1U );
392+ CHECK (addr_pos.multiplicity == 1 );
393393 CHECK (addrman->Size () == 1U );
394394
395395 // if nTime increases, an addr can occur in up to 8 buckets
@@ -402,7 +402,7 @@ FIXTURE_TEST_CASE(addrman_new_multiplicity, BasicTestingSetup)
402402 addrman->Add ({addr}, source);
403403 }
404404 AddressPosition addr_pos_multi = addrman->FindAddressEntry (addr).value ();
405- CHECK (addr_pos_multi.multiplicity == 8U );
405+ CHECK (addr_pos_multi.multiplicity == 8 );
406406 // multiplicity doesn't affect size
407407 CHECK (addrman->Size () == 1U );
408408}
@@ -644,7 +644,7 @@ FIXTURE_TEST_CASE(caddrinfo_get_new_bucket_legacy, BasicTestingSetup)
644644 }
645645 // Test: IP addresses in the different source groups should map to MORE
646646 // than 64 buckets.
647- CHECK (buckets.size () > 64 );
647+ CHECK (buckets.size () > 64U );
648648}
649649
650650// The following three test cases use asmap.raw
@@ -696,7 +696,7 @@ FIXTURE_TEST_CASE(caddrinfo_get_tried_bucket, BasicTestingSetup)
696696 }
697697 // Test: IP addresses in the different /16 prefix MAY map to more than
698698 // 8 buckets.
699- CHECK (buckets.size () > 8 );
699+ CHECK (buckets.size () > 8U );
700700
701701 buckets.clear ();
702702 for (int j = 0 ; j < 255 ; j++) {
@@ -773,7 +773,7 @@ FIXTURE_TEST_CASE(caddrinfo_get_new_bucket, BasicTestingSetup)
773773 }
774774 // Test: IP addresses in the different source /16 prefixes usually map to MORE
775775 // than 1 bucket.
776- CHECK (buckets.size () > 1 );
776+ CHECK (buckets.size () > 1U );
777777
778778 buckets.clear ();
779779 for (int p = 0 ; p < 255 ; p++) {
@@ -867,7 +867,7 @@ FIXTURE_TEST_CASE(remove_invalid, BasicTestingSetup)
867867 addrman->Add ({new1, tried1, new2, tried2}, CNetAddr{});
868868 addrman->Good (tried1);
869869 addrman->Good (tried2);
870- REQUIRE (addrman->Size () == 4 );
870+ REQUIRE (addrman->Size () == 4U );
871871
872872 stream << *addrman;
873873
@@ -890,7 +890,7 @@ FIXTURE_TEST_CASE(remove_invalid, BasicTestingSetup)
890890
891891 addrman = std::make_unique<AddrMan>(EMPTY_NETGROUPMAN , DETERMINISTIC , GetCheckRatio (m_node));
892892 stream >> *addrman;
893- CHECK (addrman->Size () == 2 );
893+ CHECK (addrman->Size () == 2U );
894894}
895895
896896FIXTURE_TEST_CASE (addrman_selecttriedcollision, BasicTestingSetup)
0 commit comments