diff --git a/osscluster_test.go b/osscluster_test.go index 80dfad7b..10023218 100644 --- a/osscluster_test.go +++ b/osscluster_test.go @@ -598,6 +598,7 @@ var _ = Describe("ClusterClient", func() { It("returns CrossSlot error", func() { pipe.Set(ctx, "A{s}", "A_value", 0) pipe.Set(ctx, "B{t}", "B_value", 0) + Expect(hashtag.Slot("A{s}")).NotTo(Equal(hashtag.Slot("B{t}"))) _, err := pipe.Exec(ctx) Expect(err).To(MatchError(redis.ErrCrossSlot)) })