|
|
@ -85,6 +85,7 @@ TEST(FlushJobTest, Empty) { |
|
|
|
SequenceNumber(), &job_context, nullptr, nullptr, |
|
|
|
SequenceNumber(), &job_context, nullptr, nullptr, |
|
|
|
kNoCompression, nullptr); |
|
|
|
kNoCompression, nullptr); |
|
|
|
ASSERT_OK(flush_job.Run()); |
|
|
|
ASSERT_OK(flush_job.Run()); |
|
|
|
|
|
|
|
job_context.Clean(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
TEST(FlushJobTest, NonEmpty) { |
|
|
|
TEST(FlushJobTest, NonEmpty) { |
|
|
@ -113,6 +114,7 @@ TEST(FlushJobTest, NonEmpty) { |
|
|
|
ASSERT_OK(flush_job.Run()); |
|
|
|
ASSERT_OK(flush_job.Run()); |
|
|
|
mutex_.Unlock(); |
|
|
|
mutex_.Unlock(); |
|
|
|
mock_table_factory_->AssertSingleFile(inserted_keys); |
|
|
|
mock_table_factory_->AssertSingleFile(inserted_keys); |
|
|
|
|
|
|
|
job_context.Clean(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} // namespace rocksdb
|
|
|
|
} // namespace rocksdb
|
|
|
|