Parcourir la source

[5093] Put the right comparison according to its comment

Francis Dupont il y a 8 ans
Parent
commit
19f02b83f7
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/bin/dhcp6/tests/dhcp6_srv_unittest.cc

+ 1 - 1
src/bin/dhcp6/tests/dhcp6_srv_unittest.cc

@@ -276,7 +276,7 @@ TEST_F(Dhcpv6SrvTest, DUID) {
     case DUID::DUID_LLT: {
         // DUID must contain at least 6 bytes long MAC
         // + 8 bytes of fixed header
-        EXPECT_GE(14, len);
+        EXPECT_GE(len, 14);
 
         uint16_t hw_type = data.readUint16();
         // there's no real way to find out "correct"