Skip to content

Commit 99cea39

Browse files
author
Bhargav Dodla
committed
fix: Updated tests
1 parent 6559130 commit 99cea39

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

osscluster_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -561,9 +561,10 @@ var _ = Describe("ClusterClient", func() {
561561
ctx, cancel := context.WithCancel(context.Background())
562562
cancel()
563563
pipe.Set(ctx, "A", "A_value", 0)
564-
cmds, err := pipe.Exec(ctx)
565-
Expect(cmds).To(HaveLen(1))
566-
Expect(err).To(Equal(context.Canceled))
564+
_, err := pipe.Exec(ctx)
565+
566+
Expect(err).To(HaveOccurred())
567+
Expect(errors.Is(err, context.Canceled)).To(BeTrue())
567568

568569
clientNodes, _ := client.Nodes(ctx, "A")
569570

0 commit comments

Comments
 (0)