Skip to content

Commit 33aecb8

Browse files
committed
chore(tests): validate keys are in different slots
1 parent c22db9a commit 33aecb8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

osscluster_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,7 @@ var _ = Describe("ClusterClient", func() {
598598
It("returns CrossSlot error", func() {
599599
pipe.Set(ctx, "A{s}", "A_value", 0)
600600
pipe.Set(ctx, "B{t}", "B_value", 0)
601+
Expect(hashtag.Slot("A{s}")).NotTo(Equal(hashtag.Slot("B{t}")))
601602
_, err := pipe.Exec(ctx)
602603
Expect(err).To(MatchError(redis.ErrCrossSlot))
603604
})

0 commit comments

Comments
 (0)