diff --git a/db/compaction/compaction_service_test.cc b/db/compaction/compaction_service_test.cc index c18e6ce364..2d6dcf4641 100644 --- a/db/compaction/compaction_service_test.cc +++ b/db/compaction/compaction_service_test.cc @@ -494,7 +494,7 @@ TEST_F(CompactionServiceTest, CorruptedOutputParanoidFileCheck) { Status s = db_->CompactRange(CompactRangeOptions(), &start, &end); if (paranoid_file_check_enabled) { ASSERT_NOK(s); - ASSERT_TRUE(s.IsCorruption()); + ASSERT_EQ(Status::Corruption("Paranoid checksums do not match"), s); } else { // CompactRange() goes through if paranoid file check is not enabled ASSERT_OK(s);