提交 45f00304 编写于 作者: K Kai Liu

Fix the "IO error" in auto_roll_logger_test

Summary:

I missed InitTestDb() in one of my tess. InitTestDb() initializes the test directory, without which the test will throw IO error.

This problem didn't occur before because I've already run the tests before so the test directory is already there.

Test Plan:

Reviewers: dhruba

CC:

Task ID: #

Blame Rev:
上级 ae09544c
......@@ -55,8 +55,10 @@ TESTS = \
version_set_test \
reduce_levels_test \
write_batch_test \
auto_roll_logger_test \
filelock_test
TOOLS = \
manifest_dump \
sst_dump \
......
......@@ -119,6 +119,7 @@ uint64_t AutoRollLoggerTest::RollLogFileByTimeTest(
}
TEST(AutoRollLoggerTest, RollLogFileBySize) {
InitTestDb();
size_t log_max_size = 1024 * 5;
AutoRollLogger* logger = new AutoRollLogger(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册