BIND 10 trac3295_2, updated. 43eabfa8ba1ebfcfdf2ad22e5425e03c9782c86f [3295] Fixed an Allocation Engine test to check that old lease is NULL.

BIND 10 source code commits bind10-changes at lists.isc.org
Mon Jan 27 16:26:42 UTC 2014


The branch, trac3295_2 has been updated
       via  43eabfa8ba1ebfcfdf2ad22e5425e03c9782c86f (commit)
      from  629c9c5a4fd4c96be25003e44a6bc7e2341c51c8 (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 43eabfa8ba1ebfcfdf2ad22e5425e03c9782c86f
Author: Marcin Siodelski <marcin at isc.org>
Date:   Mon Jan 27 17:26:34 2014 +0100

    [3295] Fixed an Allocation Engine test to check that old lease is NULL.

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

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

-----------------------------------------------------------------------
diff --git a/src/lib/dhcpsrv/tests/alloc_engine_unittest.cc b/src/lib/dhcpsrv/tests/alloc_engine_unittest.cc
index 97fb86d..4330efd 100644
--- a/src/lib/dhcpsrv/tests/alloc_engine_unittest.cc
+++ b/src/lib/dhcpsrv/tests/alloc_engine_unittest.cc
@@ -836,9 +836,10 @@ TEST_F(AllocEngine6Test, smallPool6) {
     // Now check that the lease in LeaseMgr has the same parameters
     detailCompareLease(lease, from_mgr);
 
-    // This is a new lease allocation. The collection of old leases should be
-    // empty.
-    EXPECT_TRUE(old_leases_.empty());
+    // This is a new lease allocation. The old lease corresponding to a newly
+    // allocated lease should be NULL.
+    ASSERT_EQ(1, old_leases_.size());
+    EXPECT_FALSE(old_leases_[0]);
 }
 
 // This test checks if all addresses in a pool are currently used, the attempt



More information about the bind10-changes mailing list