Wrong number of levels is Invalid argument now, not corruption

This commit is contained in:
Igor Canadi 2014-01-14 15:54:11 -08:00
parent 6291020284
commit 1ed2404f27

View File

@ -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);
}