From 4320079ad70996801a529f6fe9dcc7d8df921f38 Mon Sep 17 00:00:00 2001 From: Nedyalko Dyakov Date: Thu, 19 Jun 2025 11:55:57 +0300 Subject: [PATCH] chore(test): Add tests for keyless cmds and txpipeline --- osscluster_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/osscluster_test.go b/osscluster_test.go index 10023218..2c7f40a5 100644 --- a/osscluster_test.go +++ b/osscluster_test.go @@ -603,6 +603,15 @@ var _ = Describe("ClusterClient", func() { Expect(err).To(MatchError(redis.ErrCrossSlot)) }) + It("works normally with keyless commands and no CrossSlot error", func() { + pipe.Set(ctx, "A{s}", "A_value", 0) + pipe.Ping(ctx) + pipe.Set(ctx, "B{s}", "B_value", 0) + pipe.Ping(ctx) + _, err := pipe.Exec(ctx) + Expect(err).To(Not(HaveOccurred())) + }) + // doesn't fail when no commands are queued It("returns no error when there are no commands", func() { _, err := pipe.Exec(ctx)