BIND 10 trac2723, updated. 28e4d9aaa305d597c533f43c8eaaae37567d6896 [2723] Fixed lease4NullClientId test.

BIND 10 source code commits bind10-changes at lists.isc.org
Thu Feb 21 16:16:05 UTC 2013


The branch, trac2723 has been updated
       via  28e4d9aaa305d597c533f43c8eaaae37567d6896 (commit)
      from  6cbb6ed662f7ee7b959865eb741c6c0029d0afd8 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 28e4d9aaa305d597c533f43c8eaaae37567d6896
Author: Tomek Mrugalski <tomasz at isc.org>
Date:   Thu Feb 21 17:15:54 2013 +0100

    [2723] Fixed lease4NullClientId test.
    
      - hwaddr was mistaken as client-id again

-----------------------------------------------------------------------

Summary of changes:
 src/lib/dhcpsrv/tests/mysql_lease_mgr_unittest.cc |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/dhcpsrv/tests/mysql_lease_mgr_unittest.cc b/src/lib/dhcpsrv/tests/mysql_lease_mgr_unittest.cc
index 75131ed..1fc4f0b 100644
--- a/src/lib/dhcpsrv/tests/mysql_lease_mgr_unittest.cc
+++ b/src/lib/dhcpsrv/tests/mysql_lease_mgr_unittest.cc
@@ -751,14 +751,13 @@ TEST_F(MySqlLeaseMgrTest, lease4NullClientId) {
     // Check that we can't add a second lease with the same address
     EXPECT_FALSE(lmptr_->addLease(leases[1]));
 
-
     // Check that we can get the lease by HWAddr
-    Lease4Collection returned = lmptr_->getLease4(leases[2]->hwaddr_);
-
+    HWAddr tmp(leases[2]->hwaddr_, HTYPE_ETHER);
+    Lease4Collection returned = lmptr_->getLease4(tmp);
     ASSERT_EQ(1, returned.size());
     detailCompareLease(leases[2], *returned.begin());
 
-    l_returned = lmptr_->getLease4(leases[2]->hwaddr_, leases[2]->subnet_id_);
+    l_returned = lmptr_->getLease4(tmp, leases[2]->subnet_id_);
     ASSERT_TRUE(l_returned);
     detailCompareLease(leases[2], l_returned);
 



More information about the bind10-changes mailing list