From 445d2667eb23951fe221abe0afe6a4c4683cf01e Mon Sep 17 00:00:00 2001 From: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com> Date: Thu, 20 Jun 2024 02:25:49 +0300 Subject: [PATCH] remove tests from RE (#3035) --- commands_test.go | 8 +++++--- iterator_test.go | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/commands_test.go b/commands_test.go index dea3d5f5..641757d2 100644 --- a/commands_test.go +++ b/commands_test.go @@ -193,7 +193,7 @@ var _ = Describe("Commands", func() { Expect(r.Val()).To(Equal(int64(0))) }) - It("should ClientKillByFilter with MAXAGE", func() { + It("should ClientKillByFilter with MAXAGE", Label("NonRedisEnterprise"), func() { var s []string started := make(chan bool) done := make(chan bool) @@ -217,7 +217,7 @@ var _ = Describe("Commands", func() { killed := client.ClientKillByFilter(ctx, "MAXAGE", "1") Expect(killed.Err()).NotTo(HaveOccurred()) - Expect(killed.Val()).To(Equal(int64(2))) + Expect(killed.Val()).To(SatisfyAny(Equal(int64(2)), Equal(int64(3)))) select { case <-done: @@ -1141,7 +1141,7 @@ var _ = Describe("Commands", func() { Expect(keys[1]).To(Equal("hello")) }) - It("should HScan without values", func() { + It("should HScan without values", Label("NonRedisEnterprise"), func() { for i := 0; i < 1000; i++ { sadd := client.HSet(ctx, "myhash", fmt.Sprintf("key%d", i), "hello") Expect(sadd.Err()).NotTo(HaveOccurred()) @@ -1154,6 +1154,8 @@ var _ = Describe("Commands", func() { Expect(len(keys)).To(BeNumerically(">=", 2)) Expect(keys[0]).To(HavePrefix("key")) Expect(keys[1]).To(HavePrefix("key")) + Expect(keys).NotTo(BeEmpty()) + Expect(cursor).NotTo(BeZero()) }) It("should ZScan", func() { diff --git a/iterator_test.go b/iterator_test.go index dfa8fbbe..472ce38a 100644 --- a/iterator_test.go +++ b/iterator_test.go @@ -99,7 +99,7 @@ var _ = Describe("ScanIterator", func() { Expect(vals).To(ContainElement("x")) }) - It("should hscan without values across multiple pages", func() { + It("should hscan without values across multiple pages", Label("NonRedisEnterprise"), func() { Expect(hashSeed(71)).NotTo(HaveOccurred()) var vals []string