2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 05:55:28 +00:00

[#717,!417] Corrected SubnetFetcher6 unit test.

This commit is contained in:
Marcin Siodelski
2019-07-10 17:46:23 +02:00
parent 2189495e13
commit f7b66f7aa8

View File

@@ -1728,12 +1728,12 @@ TEST(SubnetFetcherTest, getSubnet6ById) {
subnet = SubnetFetcher6::get(collection, SubnetID(1024));
ASSERT_TRUE(subnet);
EXPECT_EQ(1024, subnet->getID());
EXPECT_EQ("2001:db8:1::", subnet->toText());
EXPECT_EQ("2001:db8:1::/64", subnet->toText());
subnet = SubnetFetcher6::get(collection, SubnetID(2048));
ASSERT_TRUE(subnet);
EXPECT_EQ(2048, subnet->getID());
EXPECT_EQ("2001:db8:2::", subnet->toText());
EXPECT_EQ("2001:db8:2::/64", subnet->toText());
}
};