Commit fa0f966c authored by Marcin Siodelski's avatar Marcin Siodelski
Browse files

[3971] Addressed other review comments.

parent 77836da9
......@@ -356,9 +356,7 @@ TEST_F(MemfileLeaseMgrTest, lfcTimer) {
// Run the test for at most 2.9 seconds.
setTestTime(2900);
// Stop worker thread to make sure it is not running when lease
// manager is destroyed. The lease manager will be unable to
// unregster timer when the thread is active.
// Stop worker thread.
ASSERT_NO_THROW(timer_mgr_->stopThread());
// Within 2.9 we should record two LFC executions.
......
......@@ -250,7 +250,9 @@ cleanup() {
# Use asterisk to remove all files starting with the given name,
# in case the LFC has been run. LFC creates files with postfixes
# appended to the lease file name.
rm -rf ${LEASE_FILE}*
if [ ! -z "${LEASE_FILE}" ]; then
rm -rf ${LEASE_FILE}*
fi
rm -rf ${CFG_FILE}
rm -rf ${KEACTRL_CFG_FILE}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment