Skip to content

Commit 4320079

Browse files
committed
chore(test): Add tests for keyless cmds and txpipeline
1 parent fffa489 commit 4320079

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

osscluster_test.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,15 @@ var _ = Describe("ClusterClient", func() {
603603
Expect(err).To(MatchError(redis.ErrCrossSlot))
604604
})
605605

606+
It("works normally with keyless commands and no CrossSlot error", func() {
607+
pipe.Set(ctx, "A{s}", "A_value", 0)
608+
pipe.Ping(ctx)
609+
pipe.Set(ctx, "B{s}", "B_value", 0)
610+
pipe.Ping(ctx)
611+
_, err := pipe.Exec(ctx)
612+
Expect(err).To(Not(HaveOccurred()))
613+
})
614+
606615
// doesn't fail when no commands are queued
607616
It("returns no error when there are no commands", func() {
608617
_, err := pipe.Exec(ctx)

0 commit comments

Comments
 (0)