]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[985-relax-timings-in-new-config-backend-pull-unit-tests] Relaxed timings and updated... 985-relax-timings-in-new-config-backend-pull-unit-tests
authorFrancis Dupont <fdupont@isc.org>
Thu, 31 Oct 2019 09:01:07 +0000 (10:01 +0100)
committerTomek Mrugalski <tomek@isc.org>
Tue, 19 Nov 2019 18:35:05 +0000 (18:35 +0000)
src/bin/dhcp4/tests/kea_controller_unittest.cc
src/bin/dhcp6/tests/kea_controller_unittest.cc

index 1eca0fd66610dc358c3f54f53ae8706622a1dff4..70e5248f66c654abaf17e66843d136e4c3fe2548 100644 (file)
@@ -287,10 +287,10 @@ public:
             EXPECT_EQ(expected, result->str());
 
             // No good way to check the rescheduling...
-            ASSERT_NO_THROW(runTimersWithTimeout(srv->getIOService(), 15));
+            ASSERT_NO_THROW(runTimersWithTimeout(srv->getIOService(), 20));
 
             if (config_wait_fetch_time > 0) {
-                EXPECT_GE(cb_control->getDatabaseConfigFetchCalls(), 12);
+                EXPECT_GE(cb_control->getDatabaseConfigFetchCalls(), 5);
             } else {
                 EXPECT_EQ(cb_control->getDatabaseConfigFetchCalls(), 2);
             }
@@ -893,19 +893,19 @@ TEST_F(JSONFileBackendTest, configBackendTimerWithThrow) {
 
 // This test verifies that the server will be updated by the
 // config-backend-pull command.
-TEST_F(JSONFileBackendTest, configBackendCommand) {
+TEST_F(JSONFileBackendTest, configBackendPullCommand) {
     testConfigBackendTimer(0, false, true);
 }
 
 // This test verifies that the server will be updated by the
 // config-backend-pull command even when updates fail.
-TEST_F(JSONFileBackendTest, configBackendCommandWithThrow) {
+TEST_F(JSONFileBackendTest, configBackendPullCommandWithThrow) {
     testConfigBackendTimer(0, true, true);
 }
 
 // This test verifies that the server will be updated by the
 // config-backend-pull command and the timer rescheduled.
-TEST_F(JSONFileBackendTest, configBackendCommandWithTimer) {
+TEST_F(JSONFileBackendTest, configBackendPullCommandWithTimer) {
     testConfigBackendTimer(1, false, true);
 }
 
index 8b89e4cc600cec80ea7368540a5e037f093b4a56..f4c2e683ac405aef2e96fc9bc442efcd6a93dcf4 100644 (file)
@@ -273,10 +273,10 @@ public:
             EXPECT_EQ(expected, result->str());
 
             // No good way to check the rescheduling...
-            ASSERT_NO_THROW(runTimersWithTimeout(srv->getIOService(), 15));
+            ASSERT_NO_THROW(runTimersWithTimeout(srv->getIOService(), 20));
 
             if (config_wait_fetch_time > 0) {
-                EXPECT_GE(cb_control->getDatabaseConfigFetchCalls(), 12);
+                EXPECT_GE(cb_control->getDatabaseConfigFetchCalls(), 5);
             } else {
                 EXPECT_EQ(cb_control->getDatabaseConfigFetchCalls(), 2);
             }
@@ -880,19 +880,19 @@ TEST_F(JSONFileBackendTest, configBackendTimerWithThrow) {
 
 // This test verifies that the server will be updated by the
 // config-backend-pull command.
-TEST_F(JSONFileBackendTest, configBackendCommand) {
+TEST_F(JSONFileBackendTest, configBackendPullCommand) {
     testConfigBackendTimer(0, false, true);
 }
 
 // This test verifies that the server will be updated by the
 // config-backend-pull command even when updates fail.
-TEST_F(JSONFileBackendTest, configBackendCommandWithThrow) {
+TEST_F(JSONFileBackendTest, configBackendPullCommandWithThrow) {
     testConfigBackendTimer(0, true, true);
 }
 
 // This test verifies that the server will be updated by the
 // config-backend-pull command and the timer rescheduled.
-TEST_F(JSONFileBackendTest, configBackendCommandWithTimer) {
+TEST_F(JSONFileBackendTest, configBackendPullCommandWithTimer) {
     testConfigBackendTimer(1, false, true);
 }