From: Marcin Siodelski Date: Wed, 23 Apr 2014 08:38:00 +0000 (+0200) Subject: [3148] Fixed obvious bugs in Dhcpv6Srv unit tests. X-Git-Tag: trac2406km_base~1^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8df5e8bd55637bab66aa9387dcfe972c1ffa0739;p=thirdparty%2Fkea.git [3148] Fixed obvious bugs in Dhcpv6Srv unit tests. --- diff --git a/src/bin/dhcp6/tests/dhcp6_test_utils.cc b/src/bin/dhcp6/tests/dhcp6_test_utils.cc index a318a70940..9207d4dbf7 100644 --- a/src/bin/dhcp6/tests/dhcp6_test_utils.cc +++ b/src/bin/dhcp6/tests/dhcp6_test_utils.cc @@ -273,7 +273,7 @@ Dhcpv6SrvTest::testRenewBasic(Lease::Type type, const std::string& existing_addr EXPECT_EQ(pd_pool_->getLength(), prefix_opt->getLength()); // Check that the lease is really in the database - l = checkLease(duid_, reply->getOption(D6O_IA_PD), prefix_opt); + l = checkPdLease(duid_, reply->getOption(D6O_IA_PD), prefix_opt); ASSERT_TRUE(l); break; } @@ -428,7 +428,7 @@ Dhcpv6SrvTest::testReleaseBasic(Lease::Type type, const IOAddress& existing, ASSERT_TRUE(subnet_->inPool(type, existing)); // Let's prepopulate the database - Lease6Ptr lease(new Lease6(Lease::TYPE_NA, existing, duid_, iaid, + Lease6Ptr lease(new Lease6(type, existing, duid_, iaid, 501, 502, 503, 504, subnet_->getID(), prefix_len)); ASSERT_TRUE(LeaseMgrFactory::instance().addLease(lease));