]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3148] Fixed obvious bugs in Dhcpv6Srv unit tests.
authorMarcin Siodelski <marcin@isc.org>
Wed, 23 Apr 2014 08:38:00 +0000 (10:38 +0200)
committerMarcin Siodelski <marcin@isc.org>
Wed, 23 Apr 2014 08:38:00 +0000 (10:38 +0200)
src/bin/dhcp6/tests/dhcp6_test_utils.cc

index a318a709406adf0a687743212d0de085118fc374..9207d4dbf749cc6d7f10f8d2ef67c0addd81c761 100644 (file)
@@ -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));