mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 18:35:46 +02:00
test: add ClusterEvalCrossslot (#4587)
This commit is contained in:
parent
8eb5e24147
commit
a56b129f69
1 changed files with 15 additions and 0 deletions
|
@ -480,6 +480,21 @@ TEST_F(ClusterFamilyTest, ClusterSlotsPopulate) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TEST_F(ClusterFamilyTest, ClusterEvalCrossslot) {
|
||||||
|
ConfigSingleNodeCluster(GetMyId());
|
||||||
|
|
||||||
|
auto res = Run({"EVAL", "return redis.call('MSET', 'x1', 'x1', 'x2', 'x2', 'x3', 'x3');", "3",
|
||||||
|
"x1", "x2", "x3"});
|
||||||
|
|
||||||
|
EXPECT_THAT(res, ErrArg("CROSSSLOT"));
|
||||||
|
|
||||||
|
auto sha =
|
||||||
|
Run({"SCRPIT", "LOAD", "return redis.call('MSET', 'x1', 'x1', 'x2', 'x2', 'x3', 'x3');", "3",
|
||||||
|
"x1", "x2", "x3"});
|
||||||
|
|
||||||
|
EXPECT_THAT(Run({"EVALSHA", sha.GetString(), "3", "x1", "x2", "x3"}), ErrArg("CROSSSLOT"));
|
||||||
|
}
|
||||||
|
|
||||||
TEST_F(ClusterFamilyTest, ClusterConfigDeleteSlots) {
|
TEST_F(ClusterFamilyTest, ClusterConfigDeleteSlots) {
|
||||||
ConfigSingleNodeCluster(GetMyId());
|
ConfigSingleNodeCluster(GetMyId());
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue