2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 14:05:33 +00:00

[#1174] Fixed unit-tests in stats_mgr

This commit is contained in:
Tomek Mrugalski
2020-07-14 15:48:18 +02:00
parent 6e3ba22dda
commit f389398ed9

View File

@@ -970,7 +970,7 @@ TEST_F(StatsMgrTest, commandSetMaxSampleAgeAll) {
StatsMgr::instance().setValue("delta", "Lorem ipsum");
ElementPtr params = Element::createMap();
params->set("duration", Element::create(3765)); // dur1245
params->set("duration", Element::create(3765)); // set duration to 3765 seconds
ConstElementPtr rsp =
StatsMgr::instance().statisticSetMaxSampleAgeAllHandler(params);
@@ -979,8 +979,7 @@ TEST_F(StatsMgrTest, commandSetMaxSampleAgeAll) {
EXPECT_EQ(CONTROL_RESULT_SUCCESS, status_code);
// check defaults
EXPECT_EQ(StatsMgr::instance().getMaxSampleAgeDefault(),
seconds(1245));
EXPECT_EQ(StatsMgr::instance().getMaxSampleAgeDefault(), seconds(3765));
EXPECT_EQ(StatsMgr::instance().getMaxSampleCountDefault(), 0);
// check if time limit was set properly and whether count limit is disabled