Skip to content

Commit 445d266

Browse files
authored
remove tests from RE (#3035)
1 parent 097cddb commit 445d266

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

commands_test.go

+5-3
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ var _ = Describe("Commands", func() {
193193
Expect(r.Val()).To(Equal(int64(0)))
194194
})
195195

196-
It("should ClientKillByFilter with MAXAGE", func() {
196+
It("should ClientKillByFilter with MAXAGE", Label("NonRedisEnterprise"), func() {
197197
var s []string
198198
started := make(chan bool)
199199
done := make(chan bool)
@@ -217,7 +217,7 @@ var _ = Describe("Commands", func() {
217217

218218
killed := client.ClientKillByFilter(ctx, "MAXAGE", "1")
219219
Expect(killed.Err()).NotTo(HaveOccurred())
220-
Expect(killed.Val()).To(Equal(int64(2)))
220+
Expect(killed.Val()).To(SatisfyAny(Equal(int64(2)), Equal(int64(3))))
221221

222222
select {
223223
case <-done:
@@ -1141,7 +1141,7 @@ var _ = Describe("Commands", func() {
11411141
Expect(keys[1]).To(Equal("hello"))
11421142
})
11431143

1144-
It("should HScan without values", func() {
1144+
It("should HScan without values", Label("NonRedisEnterprise"), func() {
11451145
for i := 0; i < 1000; i++ {
11461146
sadd := client.HSet(ctx, "myhash", fmt.Sprintf("key%d", i), "hello")
11471147
Expect(sadd.Err()).NotTo(HaveOccurred())
@@ -1154,6 +1154,8 @@ var _ = Describe("Commands", func() {
11541154
Expect(len(keys)).To(BeNumerically(">=", 2))
11551155
Expect(keys[0]).To(HavePrefix("key"))
11561156
Expect(keys[1]).To(HavePrefix("key"))
1157+
Expect(keys).NotTo(BeEmpty())
1158+
Expect(cursor).NotTo(BeZero())
11571159
})
11581160

11591161
It("should ZScan", func() {

iterator_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ var _ = Describe("ScanIterator", func() {
9999
Expect(vals).To(ContainElement("x"))
100100
})
101101

102-
It("should hscan without values across multiple pages", func() {
102+
It("should hscan without values across multiple pages", Label("NonRedisEnterprise"), func() {
103103
Expect(hashSeed(71)).NotTo(HaveOccurred())
104104

105105
var vals []string

0 commit comments

Comments
 (0)