Skip to content

Commit

Permalink
Missing Status check for kPurgeAllFiles restore mode in test
Browse files Browse the repository at this point in the history
  • Loading branch information
mszeszko-meta committed Jan 18, 2025
1 parent 4bd616e commit b155720
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utilities/backup/backup_engine_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1309,11 +1309,11 @@ TEST_F(BackupEngineTest, IncrementalRestore) {
Status s = db_->VerifyChecksum();

// Check DB contents.
if (mode == RestoreOptions::Mode::kVerifyChecksum) {
if (mode == RestoreOptions::Mode::kKeepLatestDbSessionIdFiles) {
ASSERT_TRUE(s.IsCorruption());
} else {
EXPECT_OK(s);
AssertExists(db_.get(), 0, keys_iteration * 2);
} else if (mode == RestoreOptions::Mode::kKeepLatestDbSessionIdFiles) {
ASSERT_TRUE(s.IsCorruption());
}

db_.reset(); // Close DB.
Expand Down

0 comments on commit b155720

Please sign in to comment.