fix cherry-pick confilic

Signed-off-by: adi_holden <adi@dragonflydb.io>
This commit is contained in:
adi_holden 2024-11-27 14:44:54 +02:00
parent d3690256f2
commit 976586c966

View file

@ -388,15 +388,6 @@ TEST_F(ListFamilyTest, DumpRestorePlain) {
EXPECT_EQ(Run({"LRANGE", kKey2, "0", "1"}), kValue);
}
TEST_F(ListFamilyTest, DumpRestorePlain) {
const string kValue(10'000, '#');
EXPECT_EQ(CheckedInt({"LPUSH", kKey1, kValue}), 1);
auto buffer = Run({"DUMP", kKey1}).GetBuf();
EXPECT_EQ(Run({"RESTORE", kKey2, "0", ToSV(buffer)}), "OK");
EXPECT_EQ(CheckedInt({"LLEN", kKey2}), 1);
EXPECT_EQ(Run({"LRANGE", kKey2, "0", "1"}), kValue);
}
TEST_F(ListFamilyTest, LTrim) {
Run({"rpush", kKey1, "a", "b", "c", "d"});
ASSERT_EQ(Run({"ltrim", kKey1, "-2", "-1"}), "OK");