Skip to content

Commit

Permalink
remove tests from RE (#3035)
Browse files Browse the repository at this point in the history
  • Loading branch information
ofekshenawa committed Jun 19, 2024
1 parent 097cddb commit 445d266
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions commands_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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:
Expand Down Expand Up @@ -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())
Expand All @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion iterator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 445d266

Please sign in to comment.