Skip to content

Commit

Permalink
chore; add test
Browse files Browse the repository at this point in the history
  • Loading branch information
dranikpg committed Jul 17, 2024
1 parent 3d27f5f commit 874150e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/cluster/cluster_family_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,7 @@ TEST_F(ClusterFamilyTest, ClusterCrossSlot) {

EXPECT_THAT(Run({"MSET", "key", "value", "key2", "value2"}), ErrArg("CROSSSLOT"));
EXPECT_THAT(Run({"MGET", "key", "key2"}), ErrArg("CROSSSLOT"));
EXPECT_THAT(Run({"ZINTERSTORE", "key", "2", "key1", "key2"}), ErrArg("CROSSSLOT"));

EXPECT_EQ(Run({"MSET", "key{tag}", "value", "key2{tag}", "value2"}), "OK");
EXPECT_THAT(Run({"MGET", "key{tag}", "key2{tag}"}), RespArray(ElementsAre("value", "value2")));
Expand Down

0 comments on commit 874150e

Please sign in to comment.