diff options
author | Tomek Mrugalski <tomasz@isc.org> | 2015-10-01 14:04:07 +0200 |
---|---|---|
committer | Tomek Mrugalski <tomasz@isc.org> | 2015-10-01 14:04:07 +0200 |
commit | d6d0a5437591c3613440403d64e5cff94f83070a (patch) | |
tree | 021ae0e4cd2bc7c6c7a41338ea4c9a5f1623c27f /src/lib/dhcpsrv/tests/alloc_engine_expiration_unittest.cc | |
parent | [3984] spelling (diff) | |
download | kea-d6d0a5437591c3613440403d64e5cff94f83070a.tar.xz kea-d6d0a5437591c3613440403d64e5cff94f83070a.zip |
[3984] Changes after review:
- Added comments in AllocEngine
- decline message clarified
- counters are now unsigned
- several asserts added in unit-tests
- missing doxygen entry added
Diffstat (limited to 'src/lib/dhcpsrv/tests/alloc_engine_expiration_unittest.cc')
-rw-r--r-- | src/lib/dhcpsrv/tests/alloc_engine_expiration_unittest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/dhcpsrv/tests/alloc_engine_expiration_unittest.cc b/src/lib/dhcpsrv/tests/alloc_engine_expiration_unittest.cc index 87175f9b01..55ab33e26c 100644 --- a/src/lib/dhcpsrv/tests/alloc_engine_expiration_unittest.cc +++ b/src/lib/dhcpsrv/tests/alloc_engine_expiration_unittest.cc @@ -737,7 +737,7 @@ public: /// /// @param remove see description above void testReclaimDeclined4(bool remove) { - for (int i = 0; i < TEST_LEASES_NUM; ++i) { + for (unsigned int i = 0; i < TEST_LEASES_NUM; ++i) { // Mark leases with even indexes as expired. if (evenLeaseIndex(i)) { @@ -770,7 +770,7 @@ public: int subnet2_cnt = 0; // Let's move all leases to declined,expired state. - for (int i = 0; i < TEST_LEASES_NUM; ++i) { + for (unsigned int i = 0; i < TEST_LEASES_NUM; ++i) { // Move the lease to declined state decline(i, 100); |