Fix unit tests

This commit is contained in:
alesapin 2021-05-24 15:26:23 +03:00
parent 11ac483e12
commit 77d4002498

View File

@ -911,7 +911,7 @@ TEST(CoordinationTest, TestStorageSnapshotSimple)
ChangelogDirTest test("./snapshots");
DB::KeeperSnapshotManager manager("./snapshots", 3);
DB::KeeperStorage storage(500);
DB::KeeperStorage storage(500, "");
addNode(storage, "/hello", "world", 1);
addNode(storage, "/hello/somepath", "somedata", 3);
storage.session_id_counter = 5;
@ -958,7 +958,7 @@ TEST(CoordinationTest, TestStorageSnapshotMoreWrites)
ChangelogDirTest test("./snapshots");
DB::KeeperSnapshotManager manager("./snapshots", 3);
DB::KeeperStorage storage(500);
DB::KeeperStorage storage(500, "");
storage.getSessionID(130);
for (size_t i = 0; i < 50; ++i)
@ -998,7 +998,7 @@ TEST(CoordinationTest, TestStorageSnapshotManySnapshots)
ChangelogDirTest test("./snapshots");
DB::KeeperSnapshotManager manager("./snapshots", 3);
DB::KeeperStorage storage(500);
DB::KeeperStorage storage(500, "");
storage.getSessionID(130);
for (size_t j = 1; j <= 5; ++j)
@ -1035,7 +1035,7 @@ TEST(CoordinationTest, TestStorageSnapshotMode)
{
ChangelogDirTest test("./snapshots");
DB::KeeperSnapshotManager manager("./snapshots", 3);
DB::KeeperStorage storage(500);
DB::KeeperStorage storage(500, "");
for (size_t i = 0; i < 50; ++i)
{
addNode(storage, "/hello_" + std::to_string(i), "world_" + std::to_string(i));
@ -1086,7 +1086,7 @@ TEST(CoordinationTest, TestStorageSnapshotBroken)
{
ChangelogDirTest test("./snapshots");
DB::KeeperSnapshotManager manager("./snapshots", 3);
DB::KeeperStorage storage(500);
DB::KeeperStorage storage(500, "");
for (size_t i = 0; i < 50; ++i)
{
addNode(storage, "/hello_" + std::to_string(i), "world_" + std::to_string(i));