mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 18:35:46 +02:00
fix cherry-pick confilic
Signed-off-by: adi_holden <adi@dragonflydb.io>
This commit is contained in:
parent
d3690256f2
commit
976586c966
1 changed files with 0 additions and 9 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue