mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Wrong number of levels is Invalid argument now, not corruption
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user