From 4f410ada144b6dd0d282158bbf09f7b15e451eb1 Mon Sep 17 00:00:00 2001 From: Nedyalko Dyakov Date: Tue, 11 Feb 2025 18:14:00 +0200 Subject: [PATCH] enable gears for redis 7.2 --- gears_commands_test.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gears_commands_test.go b/gears_commands_test.go index cae724d27..1d5d8611f 100644 --- a/gears_commands_test.go +++ b/gears_commands_test.go @@ -35,7 +35,7 @@ func libCodeWithConfig(libName string) string { } // TODO: Drop Gears -var _ = XDescribe("RedisGears commands", Label("gears"), func() { +var _ = Describe("RedisGears commands", Label("gears"), func() { ctx := context.TODO() var client *redis.Client @@ -50,6 +50,7 @@ var _ = XDescribe("RedisGears commands", Label("gears"), func() { }) It("should TFunctionLoad, TFunctionLoadArgs and TFunctionDelete ", Label("gears", "tfunctionload"), func() { + SkipAfterRedisVersion(7.2, "gears are not working in later versions") resultAdd, err := client.TFunctionLoad(ctx, libCode("lib1")).Result() Expect(err).NotTo(HaveOccurred()) Expect(resultAdd).To(BeEquivalentTo("OK")) @@ -59,6 +60,7 @@ var _ = XDescribe("RedisGears commands", Label("gears"), func() { Expect(resultAdd).To(BeEquivalentTo("OK")) }) It("should TFunctionList", Label("gears", "tfunctionlist"), func() { + SkipAfterRedisVersion(7.2, "gears are not working in later versions") resultAdd, err := client.TFunctionLoad(ctx, libCode("lib1")).Result() Expect(err).NotTo(HaveOccurred()) Expect(resultAdd).To(BeEquivalentTo("OK")) @@ -72,6 +74,7 @@ var _ = XDescribe("RedisGears commands", Label("gears"), func() { }) It("should TFCall", Label("gears", "tfcall"), func() { + SkipAfterRedisVersion(7.2, "gears are not working in later versions") var resultAdd interface{} resultAdd, err := client.TFunctionLoad(ctx, libCode("lib1")).Result() Expect(err).NotTo(HaveOccurred()) @@ -82,6 +85,7 @@ var _ = XDescribe("RedisGears commands", Label("gears"), func() { }) It("should TFCallArgs", Label("gears", "tfcallargs"), func() { + SkipAfterRedisVersion(7.2, "gears are not working in later versions") var resultAdd interface{} resultAdd, err := client.TFunctionLoad(ctx, libCode("lib1")).Result() Expect(err).NotTo(HaveOccurred()) @@ -93,6 +97,7 @@ var _ = XDescribe("RedisGears commands", Label("gears"), func() { }) It("should TFCallASYNC", Label("gears", "TFCallASYNC"), func() { + SkipAfterRedisVersion(7.2, "gears are not working in later versions") var resultAdd interface{} resultAdd, err := client.TFunctionLoad(ctx, libCode("lib1")).Result() Expect(err).NotTo(HaveOccurred()) @@ -103,6 +108,7 @@ var _ = XDescribe("RedisGears commands", Label("gears"), func() { }) It("should TFCallASYNCArgs", Label("gears", "TFCallASYNCargs"), func() { + SkipAfterRedisVersion(7.2, "gears are not working in later versions") var resultAdd interface{} resultAdd, err := client.TFunctionLoad(ctx, libCode("lib1")).Result() Expect(err).NotTo(HaveOccurred())