]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3694] Fix a test and some typos
authorShawn Routhier <sar@isc.org>
Fri, 6 Mar 2015 02:14:54 +0000 (18:14 -0800)
committerShawn Routhier <sar@isc.org>
Fri, 6 Mar 2015 02:14:54 +0000 (18:14 -0800)
src/lib/asiolink/tests/io_address_unittest.cc
src/lib/dhcpsrv/lease_mgr.h
src/lib/dhcpsrv/tests/alloc_engine4_unittest.cc

index b6c831fba235c46668abada3f85db52051383a51..504d01d719bdd09a8eab16e11282824bae0b6d0d 100644 (file)
@@ -169,7 +169,7 @@ TEST(IOAddressTest, isV6Zero) {
     const IOAddress address_non_zero1("::ff");
     EXPECT_FALSE(address_non_zero1.isV6Zero());
     // ff::
-    const IOAddress address_non_zero2("::ff");
+    const IOAddress address_non_zero2("ff::");
     EXPECT_FALSE(address_non_zero2.isV6Zero());
 }
 
index 0f6430f29a6e6fd8598b0531a888d5d15105ab33..7b0674d11eebbe4f9b0dc2cfcc559f945b2731a9 100644 (file)
@@ -198,7 +198,7 @@ public:
     ///        and a subnet
     ///
     /// There can be at most one lease for a given HW address in a single
-    /// pool, so this method with either return a single lease or NULL.
+    /// pool, so this method will either return a single lease or NULL.
     ///
     /// @param hwaddr hardware address of the client
     /// @param subnet_id identifier of the subnet that lease must belong to
@@ -235,8 +235,8 @@ public:
 
     /// @brief Returns existing IPv4 lease for specified client-id
     ///
-    /// There can be at most one lease for a given HW address in a single
-    /// pool, so this method with either return a single lease or NULL.
+    /// There can be at most one lease for a given client-id in a single
+    /// pool, so this method will either return a single lease or NULL.
     ///
     /// @param clientid client identifier
     /// @param subnet_id identifier of the subnet that lease must belong to
index c81e60a43976564f8bf72e671ccbc3cc9d0d1f48..b6f7202620fb7c39d8f2fa48a7e925f2c07eabf9 100644 (file)
@@ -1173,7 +1173,7 @@ TEST_F(AllocEngine4Test, reservedAddressConflictResolution) {
                                                     old_lease_);
     ASSERT_FALSE(offered_lease);
 
-    // Client A tries to renew the lease. The renewal should fail because
+    // Client A trys to renew the lease. The renewal should fail because
     // server detects that Client A doesn't have reservation for this
     // address.
     ASSERT_FALSE(engine.allocateLease4(subnet_, clientid_, hwaddr_,
@@ -1295,7 +1295,7 @@ TEST_F(AllocEngine4Test, reservedAddressHintUsedByOtherClient) {
 }
 
 // This test checks that the allocation engine refuses to allocate an
-// address when the pool is exhausted, and the only one available
+// address when the pool is exhausted, and the only available
 // address is reserved for a different client.
 TEST_F(AllocEngine4Test, reservedAddressShortPool) {
     AllocEngine engine(AllocEngine::ALLOC_ITERATIVE, 100, false);