Browse Source

[4009] Fixed 2 timeouts for CentOS 7

Francis Dupont 9 years ago
parent
commit
b832aec5a2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/lib/dhcpsrv/tests/memfile_lease_mgr_unittest.cc

+ 2 - 2
src/lib/dhcpsrv/tests/memfile_lease_mgr_unittest.cc

@@ -656,7 +656,7 @@ TEST_F(MemfileLeaseMgrTest, leaseFileFinish) {
     EXPECT_EQ(current_file_contents, current_file.readFile());
     EXPECT_EQ(current_file_contents, current_file.readFile());
 
 
     // Wait for the LFC process to complete.
     // Wait for the LFC process to complete.
-    ASSERT_TRUE(waitForProcess(*lease_mgr, 2));
+    ASSERT_TRUE(waitForProcess(*lease_mgr, 5));
 
 
     // And make sure it has returned an exit status of 0.
     // And make sure it has returned an exit status of 0.
     EXPECT_EQ(0, lease_mgr->getLFCExitStatus())
     EXPECT_EQ(0, lease_mgr->getLFCExitStatus())
@@ -721,7 +721,7 @@ TEST_F(MemfileLeaseMgrTest, leaseFileCopy) {
     EXPECT_EQ(current_file_contents, current_file.readFile());
     EXPECT_EQ(current_file_contents, current_file.readFile());
 
 
     // Wait for the LFC process to complete.
     // Wait for the LFC process to complete.
-    ASSERT_TRUE(waitForProcess(*lease_mgr, 2));
+    ASSERT_TRUE(waitForProcess(*lease_mgr, 5));
 
 
     // And make sure it has returned an exit status of 0.
     // And make sure it has returned an exit status of 0.
     EXPECT_EQ(0, lease_mgr->getLFCExitStatus())
     EXPECT_EQ(0, lease_mgr->getLFCExitStatus())