From 77d40024986b46654eab533a0229fe04cd1f5f02 Mon Sep 17 00:00:00 2001 From: alesapin Date: Mon, 24 May 2021 15:26:23 +0300 Subject: [PATCH] Fix unit tests --- src/Coordination/tests/gtest_for_build.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Coordination/tests/gtest_for_build.cpp b/src/Coordination/tests/gtest_for_build.cpp index a0313651c21..9a744d2bbed 100644 --- a/src/Coordination/tests/gtest_for_build.cpp +++ b/src/Coordination/tests/gtest_for_build.cpp @@ -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));