///
/// @return true if the process ended, false otherwise
bool waitForProcess(const Memfile_LeaseMgr& lease_mgr,
- const uint8_t timeout) {
+ const uint8_t timeout = 5) {
const uint32_t iterations_max = timeout * 1000;
IntervalTimer fast_path_timer(io_service_);
IntervalTimer timer(io_service_);
ASSERT_NO_THROW(lease_mgr->lfcCallback());
// Wait for the LFC process to complete.
- ASSERT_TRUE(waitForProcess(*lease_mgr, 1));
+ ASSERT_TRUE(waitForProcess(*lease_mgr));
// And make sure it has returned an exit status of 0.
EXPECT_EQ(0, lease_mgr->getLFCExitStatus())
EXPECT_EQ(new_file_contents, current_file.readFile());
// Wait for the LFC process to complete.
- ASSERT_TRUE(waitForProcess(*lease_mgr, 2));
+ ASSERT_TRUE(waitForProcess(*lease_mgr));
// And make sure it has returned an exit status of 0.
EXPECT_EQ(0, lease_mgr->getLFCExitStatus())
EXPECT_EQ(new_file_contents, current_file.readFile());
// Wait for the LFC process to complete.
- ASSERT_TRUE(waitForProcess(*lease_mgr, 2));
+ ASSERT_TRUE(waitForProcess(*lease_mgr));
// And make sure it has returned an exit status of 0.
EXPECT_EQ(0, lease_mgr->getLFCExitStatus())
EXPECT_EQ(current_file_contents, current_file.readFile());
// Wait for the LFC process to complete.
- ASSERT_TRUE(waitForProcess(*lease_mgr, 5));
+ ASSERT_TRUE(waitForProcess(*lease_mgr));
// And make sure it has returned an exit status of 0.
EXPECT_EQ(0, lease_mgr->getLFCExitStatus())
EXPECT_EQ(current_file_contents, current_file.readFile());
// Wait for the LFC process to complete.
- ASSERT_TRUE(waitForProcess(*lease_mgr, 5));
+ ASSERT_TRUE(waitForProcess(*lease_mgr));
// And make sure it has returned an exit status of 0.
EXPECT_EQ(0, lease_mgr->getLFCExitStatus())
// Wait for the LFC process to complete and
// make sure it has returned an exit status of 0.
- ASSERT_TRUE(waitForProcess(*lease_mgr, 2));
+ ASSERT_TRUE(waitForProcess(*lease_mgr));
ASSERT_EQ(0, lease_mgr->getLFCExitStatus())
<< "Executing the LFC process failed: make sure that"
// Wait for the LFC process to complete and
// make sure it has returned an exit status of 0.
- ASSERT_TRUE(waitForProcess(*lease_mgr, 2));
+ ASSERT_TRUE(waitForProcess(*lease_mgr));
ASSERT_EQ(0, lease_mgr->getLFCExitStatus())
<< "Executing the LFC process failed: make sure that"
EXPECT_EQ(expected, response->str());
// Wait for the LFC process to complete.
- ASSERT_TRUE(waitForProcess(*lease_mgr, 1));
+ ASSERT_TRUE(waitForProcess(*lease_mgr));
// And make sure it has returned an exit status of 0.
EXPECT_EQ(0, lease_mgr->getLFCExitStatus())
EXPECT_EQ(expected, response->str());
// Wait for the LFC process to complete.
- ASSERT_TRUE(waitForProcess(*lease_mgr, 1));
+ ASSERT_TRUE(waitForProcess(*lease_mgr));
// And make sure it has returned an exit status of 0.
EXPECT_EQ(0, lease_mgr->getLFCExitStatus())