Skip to content

Commit

Permalink
Wrong number of levels is Invalid argument now, not corruption
Browse files Browse the repository at this point in the history
  • Loading branch information
igorcanadi committed Jan 14, 2014
1 parent 6291020 commit 1ed2404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/db_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3397,7 +3397,7 @@ TEST(DBTest, DBOpen_Change_NumLevels) {
opts.create_if_missing = false;
opts.num_levels = 2;
s = DB::Open(opts, dbname, &db);
ASSERT_TRUE(strstr(s.ToString().c_str(), "Corruption") != nullptr);
ASSERT_TRUE(strstr(s.ToString().c_str(), "Invalid argument") != nullptr);
ASSERT_TRUE(db == nullptr);
}

Expand Down

0 comments on commit 1ed2404

Please sign in to comment.