@@ -194,6 +194,7 @@ var _ = Describe("Commands", func() {
194194 })
195195
196196 It ("should ClientKillByFilter with MAXAGE" , Label ("NonRedisEnterprise" ), func () {
197+ SkipBeforeRedisVersion (7.4 , "doesn't work with older redis stack images" )
197198 var s []string
198199 started := make (chan bool )
199200 done := make (chan bool )
@@ -345,7 +346,7 @@ var _ = Describe("Commands", func() {
345346 })
346347
347348 It ("should ConfigGet Modules" , func () {
348- SkipBeforeRedisMajor (8 , "Config doesn't include modules before Redis 8" )
349+ SkipBeforeRedisVersion (8 , "Config doesn't include modules before Redis 8" )
349350 expected := map [string ]string {
350351 "search-*" : "search-timeout" ,
351352 "ts-*" : "ts-retention-policy" ,
@@ -380,7 +381,7 @@ var _ = Describe("Commands", func() {
380381 })
381382
382383 It ("should ConfigGet with Modules" , Label ("NonRedisEnterprise" ), func () {
383- SkipBeforeRedisMajor (8 , "config get won't return modules configs before redis 8" )
384+ SkipBeforeRedisVersion (8 , "config get won't return modules configs before redis 8" )
384385 configGet := client .ConfigGet (ctx , "*" )
385386 Expect (configGet .Err ()).NotTo (HaveOccurred ())
386387 Expect (configGet .Val ()).To (HaveKey ("maxmemory" ))
@@ -391,7 +392,7 @@ var _ = Describe("Commands", func() {
391392 })
392393
393394 It ("should ConfigSet FT DIALECT" , func () {
394- SkipBeforeRedisMajor (8 , "config doesn't include modules before Redis 8" )
395+ SkipBeforeRedisVersion (8 , "config doesn't include modules before Redis 8" )
395396 defaultState , err := client .ConfigGet (ctx , "search-default-dialect" ).Result ()
396397 Expect (err ).NotTo (HaveOccurred ())
397398
@@ -437,13 +438,13 @@ var _ = Describe("Commands", func() {
437438 })
438439
439440 It ("should ConfigSet fail for ReadOnly" , func () {
440- SkipBeforeRedisMajor (8 , "Config doesn't include modules before Redis 8" )
441+ SkipBeforeRedisVersion (8 , "Config doesn't include modules before Redis 8" )
441442 _ , err := client .ConfigSet (ctx , "search-max-doctablesize" , "100000" ).Result ()
442443 Expect (err ).To (HaveOccurred ())
443444 })
444445
445446 It ("should ConfigSet Modules" , func () {
446- SkipBeforeRedisMajor (8 , "Config doesn't include modules before Redis 8" )
447+ SkipBeforeRedisVersion (8 , "Config doesn't include modules before Redis 8" )
447448 defaults := map [string ]string {}
448449 expected := map [string ]string {
449450 "search-timeout" : "100" ,
@@ -484,7 +485,7 @@ var _ = Describe("Commands", func() {
484485 })
485486
486487 It ("should Fail ConfigSet Modules" , func () {
487- SkipBeforeRedisMajor (8 , "Config doesn't include modules before Redis 8" )
488+ SkipBeforeRedisVersion (8 , "Config doesn't include modules before Redis 8" )
488489 expected := map [string ]string {
489490 "search-timeout" : "-100" ,
490491 "ts-retention-policy" : "-10" ,
@@ -533,7 +534,7 @@ var _ = Describe("Commands", func() {
533534 })
534535
535536 It ("should Info Modules" , Label ("redis.info" ), func () {
536- SkipBeforeRedisMajor (8 , "modules are included in info for Redis Version >= 8" )
537+ SkipBeforeRedisVersion (8 , "modules are included in info for Redis Version >= 8" )
537538 info := client .Info (ctx )
538539 Expect (info .Err ()).NotTo (HaveOccurred ())
539540 Expect (info .Val ()).NotTo (BeNil ())
@@ -558,7 +559,7 @@ var _ = Describe("Commands", func() {
558559 })
559560
560561 It ("should InfoMap Modules" , Label ("redis.info" ), func () {
561- SkipBeforeRedisMajor (8 , "modules are included in info for Redis Version >= 8" )
562+ SkipBeforeRedisVersion (8 , "modules are included in info for Redis Version >= 8" )
562563 info := client .InfoMap (ctx )
563564 Expect (info .Err ()).NotTo (HaveOccurred ())
564565 Expect (info .Val ()).NotTo (BeNil ())
@@ -1332,6 +1333,7 @@ var _ = Describe("Commands", func() {
13321333 })
13331334
13341335 It ("should HScan without values" , Label ("NonRedisEnterprise" ), func () {
1336+ SkipBeforeRedisVersion (7.4 , "doesn't work with older redis stack images" )
13351337 for i := 0 ; i < 1000 ; i ++ {
13361338 sadd := client .HSet (ctx , "myhash" , fmt .Sprintf ("key%d" , i ), "hello" )
13371339 Expect (sadd .Err ()).NotTo (HaveOccurred ())
@@ -2625,6 +2627,7 @@ var _ = Describe("Commands", func() {
26252627 })
26262628
26272629 It ("should HExpire" , Label ("hash-expiration" , "NonRedisEnterprise" ), func () {
2630+ SkipBeforeRedisVersion (7.4 , "doesn't work with older redis stack images" )
26282631 res , err := client .HExpire (ctx , "no_such_key" , 10 * time .Second , "field1" , "field2" , "field3" ).Result ()
26292632 Expect (err ).To (BeNil ())
26302633 Expect (res ).To (BeEquivalentTo ([]int64 {- 2 , - 2 , - 2 }))
@@ -2640,6 +2643,7 @@ var _ = Describe("Commands", func() {
26402643 })
26412644
26422645 It ("should HPExpire" , Label ("hash-expiration" , "NonRedisEnterprise" ), func () {
2646+ SkipBeforeRedisVersion (7.4 , "doesn't work with older redis stack images" )
26432647 res , err := client .HPExpire (ctx , "no_such_key" , 10 * time .Second , "field1" , "field2" , "field3" ).Result ()
26442648 Expect (err ).To (BeNil ())
26452649 Expect (res ).To (BeEquivalentTo ([]int64 {- 2 , - 2 , - 2 }))
@@ -2655,6 +2659,7 @@ var _ = Describe("Commands", func() {
26552659 })
26562660
26572661 It ("should HExpireAt" , Label ("hash-expiration" , "NonRedisEnterprise" ), func () {
2662+ SkipBeforeRedisVersion (7.4 , "doesn't work with older redis stack images" )
26582663 resEmpty , err := client .HExpireAt (ctx , "no_such_key" , time .Now ().Add (10 * time .Second ), "field1" , "field2" , "field3" ).Result ()
26592664 Expect (err ).To (BeNil ())
26602665 Expect (resEmpty ).To (BeEquivalentTo ([]int64 {- 2 , - 2 , - 2 }))
@@ -2670,6 +2675,7 @@ var _ = Describe("Commands", func() {
26702675 })
26712676
26722677 It ("should HPExpireAt" , Label ("hash-expiration" , "NonRedisEnterprise" ), func () {
2678+ SkipBeforeRedisVersion (7.4 , "doesn't work with older redis stack images" )
26732679 resEmpty , err := client .HPExpireAt (ctx , "no_such_key" , time .Now ().Add (10 * time .Second ), "field1" , "field2" , "field3" ).Result ()
26742680 Expect (err ).To (BeNil ())
26752681 Expect (resEmpty ).To (BeEquivalentTo ([]int64 {- 2 , - 2 , - 2 }))
@@ -2685,6 +2691,7 @@ var _ = Describe("Commands", func() {
26852691 })
26862692
26872693 It ("should HPersist" , Label ("hash-expiration" , "NonRedisEnterprise" ), func () {
2694+ SkipBeforeRedisVersion (7.4 , "doesn't work with older redis stack images" )
26882695 resEmpty , err := client .HPersist (ctx , "no_such_key" , "field1" , "field2" , "field3" ).Result ()
26892696 Expect (err ).To (BeNil ())
26902697 Expect (resEmpty ).To (BeEquivalentTo ([]int64 {- 2 , - 2 , - 2 }))
@@ -2708,6 +2715,7 @@ var _ = Describe("Commands", func() {
27082715 })
27092716
27102717 It ("should HExpireTime" , Label ("hash-expiration" , "NonRedisEnterprise" ), func () {
2718+ SkipBeforeRedisVersion (7.4 , "doesn't work with older redis stack images" )
27112719 resEmpty , err := client .HExpireTime (ctx , "no_such_key" , "field1" , "field2" , "field3" ).Result ()
27122720 Expect (err ).To (BeNil ())
27132721 Expect (resEmpty ).To (BeEquivalentTo ([]int64 {- 2 , - 2 , - 2 }))
@@ -2727,6 +2735,7 @@ var _ = Describe("Commands", func() {
27272735 })
27282736
27292737 It ("should HPExpireTime" , Label ("hash-expiration" , "NonRedisEnterprise" ), func () {
2738+ SkipBeforeRedisVersion (7.4 , "doesn't work with older redis stack images" )
27302739 resEmpty , err := client .HPExpireTime (ctx , "no_such_key" , "field1" , "field2" , "field3" ).Result ()
27312740 Expect (err ).To (BeNil ())
27322741 Expect (resEmpty ).To (BeEquivalentTo ([]int64 {- 2 , - 2 , - 2 }))
@@ -2747,6 +2756,7 @@ var _ = Describe("Commands", func() {
27472756 })
27482757
27492758 It ("should HTTL" , Label ("hash-expiration" , "NonRedisEnterprise" ), func () {
2759+ SkipBeforeRedisVersion (7.4 , "doesn't work with older redis stack images" )
27502760 resEmpty , err := client .HTTL (ctx , "no_such_key" , "field1" , "field2" , "field3" ).Result ()
27512761 Expect (err ).To (BeNil ())
27522762 Expect (resEmpty ).To (BeEquivalentTo ([]int64 {- 2 , - 2 , - 2 }))
@@ -2766,6 +2776,7 @@ var _ = Describe("Commands", func() {
27662776 })
27672777
27682778 It ("should HPTTL" , Label ("hash-expiration" , "NonRedisEnterprise" ), func () {
2779+ SkipBeforeRedisVersion (7.4 , "doesn't work with older redis stack images" )
27692780 resEmpty , err := client .HPTTL (ctx , "no_such_key" , "field1" , "field2" , "field3" ).Result ()
27702781 Expect (err ).To (BeNil ())
27712782 Expect (resEmpty ).To (BeEquivalentTo ([]int64 {- 2 , - 2 , - 2 }))
@@ -6040,6 +6051,7 @@ var _ = Describe("Commands", func() {
60406051 })
60416052
60426053 It ("should XRead LastEntry" , Label ("NonRedisEnterprise" ), func () {
6054+ SkipBeforeRedisVersion (7.4 , "doesn't work with older redis stack images" )
60436055 res , err := client .XRead (ctx , & redis.XReadArgs {
60446056 Streams : []string {"stream" },
60456057 Count : 2 , // we expect 1 message
@@ -6057,6 +6069,7 @@ var _ = Describe("Commands", func() {
60576069 })
60586070
60596071 It ("should XRead LastEntry from two streams" , Label ("NonRedisEnterprise" ), func () {
6072+ SkipBeforeRedisVersion (7.4 , "doesn't work with older redis stack images" )
60606073 res , err := client .XRead (ctx , & redis.XReadArgs {
60616074 Streams : []string {"stream" , "stream" },
60626075 ID : "+" ,
@@ -6079,6 +6092,7 @@ var _ = Describe("Commands", func() {
60796092 })
60806093
60816094 It ("should XRead LastEntry blocks" , Label ("NonRedisEnterprise" ), func () {
6095+ SkipBeforeRedisVersion (7.4 , "doesn't work with older redis stack images" )
60826096 start := time .Now ()
60836097 go func () {
60846098 defer GinkgoRecover ()
@@ -7332,6 +7346,7 @@ var _ = Describe("Commands", func() {
73327346 })
73337347
73347348 It ("Shows function stats" , func () {
7349+ SkipBeforeRedisVersion (7.4 , "doesn't work with older redis stack images" )
73357350 defer client .FunctionKill (ctx )
73367351
73377352 // We can not run blocking commands in Redis functions, so we're using an infinite loop,
0 commit comments