Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
3e85e573
Commit
3e85e573
authored
Mar 05, 2015
by
Shawn Routhier
Browse files
[3694] Fix a test and some typos
parent
f86883c8
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/lib/asiolink/tests/io_address_unittest.cc
View file @
3e85e573
...
...
@@ -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
());
}
...
...
src/lib/dhcpsrv/lease_mgr.h
View file @
3e85e573
...
...
@@ -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 wi
th
either return a single lease or NULL.
/// pool, so this method wi
ll
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 wi
th
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 wi
ll
either return a single lease or NULL.
///
/// @param clientid client identifier
/// @param subnet_id identifier of the subnet that lease must belong to
...
...
src/lib/dhcpsrv/tests/alloc_engine4_unittest.cc
View file @
3e85e573
...
...
@@ -1173,7 +1173,7 @@ TEST_F(AllocEngine4Test, reservedAddressConflictResolution) {
old_lease_
);
ASSERT_FALSE
(
offered_lease
);
// Client A tr
ie
s to renew the lease. The renewal should fail because
// Client A tr
y
s 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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment