@@ -388,7 +388,7 @@ FIXTURE_TEST_CASE(addrman_new_multiplicity, BasicTestingSetup)
388388 addrman->Add ({addr}, source);
389389 }
390390 AddressPosition addr_pos = addrman->FindAddressEntry (addr).value ();
391- CHECK (addr_pos.multiplicity == 1U );
391+ CHECK (addr_pos.multiplicity == 1 );
392392 CHECK (addrman->Size () == 1U );
393393
394394 // if nTime increases, an addr can occur in up to 8 buckets
@@ -401,7 +401,7 @@ FIXTURE_TEST_CASE(addrman_new_multiplicity, BasicTestingSetup)
401401 addrman->Add ({addr}, source);
402402 }
403403 AddressPosition addr_pos_multi = addrman->FindAddressEntry (addr).value ();
404- CHECK (addr_pos_multi.multiplicity == 8U );
404+ CHECK (addr_pos_multi.multiplicity == 8 );
405405 // multiplicity doesn't affect size
406406 CHECK (addrman->Size () == 1U );
407407}
@@ -643,7 +643,7 @@ FIXTURE_TEST_CASE(caddrinfo_get_new_bucket_legacy, BasicTestingSetup)
643643 }
644644 // Test: IP addresses in the different source groups should map to MORE
645645 // than 64 buckets.
646- CHECK (buckets.size () > 64 );
646+ CHECK (buckets.size () > 64U );
647647}
648648
649649// The following three test cases use asmap.raw
@@ -695,7 +695,7 @@ FIXTURE_TEST_CASE(caddrinfo_get_tried_bucket, BasicTestingSetup)
695695 }
696696 // Test: IP addresses in the different /16 prefix MAY map to more than
697697 // 8 buckets.
698- CHECK (buckets.size () > 8 );
698+ CHECK (buckets.size () > 8U );
699699
700700 buckets.clear ();
701701 for (int j = 0 ; j < 255 ; j++) {
@@ -772,7 +772,7 @@ FIXTURE_TEST_CASE(caddrinfo_get_new_bucket, BasicTestingSetup)
772772 }
773773 // Test: IP addresses in the different source /16 prefixes usually map to MORE
774774 // than 1 bucket.
775- CHECK (buckets.size () > 1 );
775+ CHECK (buckets.size () > 1U );
776776
777777 buckets.clear ();
778778 for (int p = 0 ; p < 255 ; p++) {
@@ -866,7 +866,7 @@ FIXTURE_TEST_CASE(remove_invalid, BasicTestingSetup)
866866 addrman->Add ({new1, tried1, new2, tried2}, CNetAddr{});
867867 addrman->Good (tried1);
868868 addrman->Good (tried2);
869- REQUIRE (addrman->Size () == 4 );
869+ REQUIRE (addrman->Size () == 4U );
870870
871871 stream << *addrman;
872872
@@ -889,7 +889,7 @@ FIXTURE_TEST_CASE(remove_invalid, BasicTestingSetup)
889889
890890 addrman = std::make_unique<AddrMan>(EMPTY_NETGROUPMAN , DETERMINISTIC , GetCheckRatio (m_node));
891891 stream >> *addrman;
892- CHECK (addrman->Size () == 2 );
892+ CHECK (addrman->Size () == 2U );
893893}
894894
895895FIXTURE_TEST_CASE (addrman_selecttriedcollision, BasicTestingSetup)
0 commit comments