@@ -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 ())
@@ -2625,6 +2626,7 @@ var _ = Describe("Commands", func() {
26252626 })
26262627
26272628 It ("should HExpire" , Label ("hash-expiration" , "NonRedisEnterprise" ), func () {
2629+ SkipBeforeRedisVersion (7.4 , "doesn't work with older redis stack images" )
26282630 res , err := client .HExpire (ctx , "no_such_key" , 10 * time .Second , "field1" , "field2" , "field3" ).Result ()
26292631 Expect (err ).To (BeNil ())
26302632 Expect (res ).To (BeEquivalentTo ([]int64 {- 2 , - 2 , - 2 }))
@@ -2640,6 +2642,7 @@ var _ = Describe("Commands", func() {
26402642 })
26412643
26422644 It ("should HPExpire" , Label ("hash-expiration" , "NonRedisEnterprise" ), func () {
2645+ SkipBeforeRedisVersion (7.4 , "doesn't work with older redis stack images" )
26432646 res , err := client .HPExpire (ctx , "no_such_key" , 10 * time .Second , "field1" , "field2" , "field3" ).Result ()
26442647 Expect (err ).To (BeNil ())
26452648 Expect (res ).To (BeEquivalentTo ([]int64 {- 2 , - 2 , - 2 }))
@@ -2655,6 +2658,7 @@ var _ = Describe("Commands", func() {
26552658 })
26562659
26572660 It ("should HExpireAt" , Label ("hash-expiration" , "NonRedisEnterprise" ), func () {
2661+ SkipBeforeRedisVersion (7.4 , "doesn't work with older redis stack images" )
26582662 resEmpty , err := client .HExpireAt (ctx , "no_such_key" , time .Now ().Add (10 * time .Second ), "field1" , "field2" , "field3" ).Result ()
26592663 Expect (err ).To (BeNil ())
26602664 Expect (resEmpty ).To (BeEquivalentTo ([]int64 {- 2 , - 2 , - 2 }))
@@ -2670,6 +2674,7 @@ var _ = Describe("Commands", func() {
26702674 })
26712675
26722676 It ("should HPExpireAt" , Label ("hash-expiration" , "NonRedisEnterprise" ), func () {
2677+ SkipBeforeRedisVersion (7.4 , "doesn't work with older redis stack images" )
26732678 resEmpty , err := client .HPExpireAt (ctx , "no_such_key" , time .Now ().Add (10 * time .Second ), "field1" , "field2" , "field3" ).Result ()
26742679 Expect (err ).To (BeNil ())
26752680 Expect (resEmpty ).To (BeEquivalentTo ([]int64 {- 2 , - 2 , - 2 }))
@@ -2685,6 +2690,7 @@ var _ = Describe("Commands", func() {
26852690 })
26862691
26872692 It ("should HPersist" , Label ("hash-expiration" , "NonRedisEnterprise" ), func () {
2693+ SkipBeforeRedisVersion (7.4 , "doesn't work with older redis stack images" )
26882694 resEmpty , err := client .HPersist (ctx , "no_such_key" , "field1" , "field2" , "field3" ).Result ()
26892695 Expect (err ).To (BeNil ())
26902696 Expect (resEmpty ).To (BeEquivalentTo ([]int64 {- 2 , - 2 , - 2 }))
@@ -2708,6 +2714,7 @@ var _ = Describe("Commands", func() {
27082714 })
27092715
27102716 It ("should HExpireTime" , Label ("hash-expiration" , "NonRedisEnterprise" ), func () {
2717+ SkipBeforeRedisVersion (7.4 , "doesn't work with older redis stack images" )
27112718 resEmpty , err := client .HExpireTime (ctx , "no_such_key" , "field1" , "field2" , "field3" ).Result ()
27122719 Expect (err ).To (BeNil ())
27132720 Expect (resEmpty ).To (BeEquivalentTo ([]int64 {- 2 , - 2 , - 2 }))
@@ -2727,6 +2734,7 @@ var _ = Describe("Commands", func() {
27272734 })
27282735
27292736 It ("should HPExpireTime" , Label ("hash-expiration" , "NonRedisEnterprise" ), func () {
2737+ SkipBeforeRedisVersion (7.4 , "doesn't work with older redis stack images" )
27302738 resEmpty , err := client .HPExpireTime (ctx , "no_such_key" , "field1" , "field2" , "field3" ).Result ()
27312739 Expect (err ).To (BeNil ())
27322740 Expect (resEmpty ).To (BeEquivalentTo ([]int64 {- 2 , - 2 , - 2 }))
@@ -2747,6 +2755,7 @@ var _ = Describe("Commands", func() {
27472755 })
27482756
27492757 It ("should HTTL" , Label ("hash-expiration" , "NonRedisEnterprise" ), func () {
2758+ SkipBeforeRedisVersion (7.4 , "doesn't work with older redis stack images" )
27502759 resEmpty , err := client .HTTL (ctx , "no_such_key" , "field1" , "field2" , "field3" ).Result ()
27512760 Expect (err ).To (BeNil ())
27522761 Expect (resEmpty ).To (BeEquivalentTo ([]int64 {- 2 , - 2 , - 2 }))
@@ -2766,6 +2775,7 @@ var _ = Describe("Commands", func() {
27662775 })
27672776
27682777 It ("should HPTTL" , Label ("hash-expiration" , "NonRedisEnterprise" ), func () {
2778+ SkipBeforeRedisVersion (7.4 , "doesn't work with older redis stack images" )
27692779 resEmpty , err := client .HPTTL (ctx , "no_such_key" , "field1" , "field2" , "field3" ).Result ()
27702780 Expect (err ).To (BeNil ())
27712781 Expect (resEmpty ).To (BeEquivalentTo ([]int64 {- 2 , - 2 , - 2 }))
@@ -6040,6 +6050,7 @@ var _ = Describe("Commands", func() {
60406050 })
60416051
60426052 It ("should XRead LastEntry" , Label ("NonRedisEnterprise" ), func () {
6053+ SkipBeforeRedisVersion (7.4 , "doesn't work with older redis stack images" )
60436054 res , err := client .XRead (ctx , & redis.XReadArgs {
60446055 Streams : []string {"stream" },
60456056 Count : 2 , // we expect 1 message
@@ -6057,6 +6068,7 @@ var _ = Describe("Commands", func() {
60576068 })
60586069
60596070 It ("should XRead LastEntry from two streams" , Label ("NonRedisEnterprise" ), func () {
6071+ SkipBeforeRedisVersion (7.4 , "doesn't work with older redis stack images" )
60606072 res , err := client .XRead (ctx , & redis.XReadArgs {
60616073 Streams : []string {"stream" , "stream" },
60626074 ID : "+" ,
@@ -6079,6 +6091,7 @@ var _ = Describe("Commands", func() {
60796091 })
60806092
60816093 It ("should XRead LastEntry blocks" , Label ("NonRedisEnterprise" ), func () {
6094+ SkipBeforeRedisVersion (7.4 , "doesn't work with older redis stack images" )
60826095 start := time .Now ()
60836096 go func () {
60846097 defer GinkgoRecover ()
@@ -7332,6 +7345,7 @@ var _ = Describe("Commands", func() {
73327345 })
73337346
73347347 It ("Shows function stats" , func () {
7348+ SkipBeforeRedisVersion (7.4 , "doesn't work with older redis stack images" )
73357349 defer client .FunctionKill (ctx )
73367350
73377351 // We can not run blocking commands in Redis functions, so we're using an infinite loop,
0 commit comments