Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Sebastian Schrader
Kea
Commits
7e639550
Commit
7e639550
authored
Dec 22, 2016
by
Tomek Mrugalski
🛰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[5039] Failing unit-tests fixed
parent
475b2531
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/bin/dhcp4/tests/config_parser_unittest.cc
src/bin/dhcp4/tests/config_parser_unittest.cc
+4
-2
No files found.
src/bin/dhcp4/tests/config_parser_unittest.cc
View file @
7e639550
...
...
@@ -669,8 +669,9 @@ TEST_F(Dhcp4ParserTest, unspecifiedRenewTimer) {
Subnet4Ptr
subnet
=
CfgMgr
::
instance
().
getStagingCfg
()
->
getCfgSubnets4
()
->
selectSubnet
(
IOAddress
(
"192.0.2.200"
));
ASSERT_TRUE
(
subnet
);
EXPECT_
TRU
E
(
subnet
->
getT1
().
unspecified
());
EXPECT_
FALS
E
(
subnet
->
getT1
().
unspecified
());
EXPECT_FALSE
(
subnet
->
getT2
().
unspecified
());
EXPECT_EQ
(
900
,
subnet
->
getT1
());
// that's the default value
EXPECT_EQ
(
2000
,
subnet
->
getT2
());
EXPECT_EQ
(
4000
,
subnet
->
getValid
());
...
...
@@ -705,7 +706,8 @@ TEST_F(Dhcp4ParserTest, unspecifiedRebindTimer) {
ASSERT_TRUE
(
subnet
);
EXPECT_FALSE
(
subnet
->
getT1
().
unspecified
());
EXPECT_EQ
(
1000
,
subnet
->
getT1
());
EXPECT_TRUE
(
subnet
->
getT2
().
unspecified
());
EXPECT_FALSE
(
subnet
->
getT2
().
unspecified
());
EXPECT_EQ
(
1800
,
subnet
->
getT2
());
// that's the default value
EXPECT_EQ
(
4000
,
subnet
->
getValid
());
// Check that subnet-id is 1
...
...
Write
Preview
Markdown
is supported
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