]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] Replaced EXPECT_EQ by EXPECT_TRUE == on HWAddr
authorFrancis Dupont <fdupont@isc.org>
Wed, 21 Oct 2015 15:06:19 +0000 (17:06 +0200)
committerFrancis Dupont <fdupont@isc.org>
Wed, 21 Oct 2015 15:06:19 +0000 (17:06 +0200)
src/bin/dhcp4/tests/dhcp4_srv_unittest.cc

index 4c832ae75422e84edd9d3953e1c709918397697c..184075e0efebdbd632cfd6051fd32cf07fc61dc5 100644 (file)
@@ -401,10 +401,10 @@ TEST_F(Dhcpv4SrvTest, initResponse) {
     EXPECT_TRUE(response->getSiaddr().isV4Zero());
     EXPECT_TRUE(response->getCiaddr().isV4Zero());
     EXPECT_EQ(5, response->getHops());
-    EXPECT_EQ(hw, *response->getHWAddr());
+    EXPECT_TRUE(hw == *response->getHWAddr());
     EXPECT_EQ(IOAddress("10.10.10.10"), response->getGiaddr());
-    EXPECT_EQ(src_hw, *response->getLocalHWAddr());
-    EXPECT_EQ(dst_hw, *response->getRemoteHWAddr());
+    EXPECT_TRUE(src_hw == *response->getLocalHWAddr());
+    EXPECT_TRUE(dst_hw == *response->getRemoteHWAddr());
 
     // Check options (i.e., subnet selection option)
     OptionPtr resp_sbnsel = response->getOption(DHO_SUBNET_SELECTION);