Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Adam Osuchowski
Kea
Commits
8df5e8bd
Commit
8df5e8bd
authored
Apr 23, 2014
by
Marcin Siodelski
Browse files
[3148] Fixed obvious bugs in Dhcpv6Srv unit tests.
parent
2dbdfeb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/dhcp6/tests/dhcp6_test_utils.cc
View file @
8df5e8bd
...
...
@@ -273,7 +273,7 @@ Dhcpv6SrvTest::testRenewBasic(Lease::Type type, const std::string& existing_addr
EXPECT_EQ
(
pd_pool_
->
getLength
(),
prefix_opt
->
getLength
());
// Check that the lease is really in the database
l
=
checkLease
(
duid_
,
reply
->
getOption
(
D6O_IA_PD
),
prefix_opt
);
l
=
check
Pd
Lease
(
duid_
,
reply
->
getOption
(
D6O_IA_PD
),
prefix_opt
);
ASSERT_TRUE
(
l
);
break
;
}
...
...
@@ -428,7 +428,7 @@ Dhcpv6SrvTest::testReleaseBasic(Lease::Type type, const IOAddress& existing,
ASSERT_TRUE
(
subnet_
->
inPool
(
type
,
existing
));
// Let's prepopulate the database
Lease6Ptr
lease
(
new
Lease6
(
Lease
::
TYPE_NA
,
existing
,
duid_
,
iaid
,
Lease6Ptr
lease
(
new
Lease6
(
type
,
existing
,
duid_
,
iaid
,
501
,
502
,
503
,
504
,
subnet_
->
getID
(),
prefix_len
));
ASSERT_TRUE
(
LeaseMgrFactory
::
instance
().
addLease
(
lease
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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