Skip to content

Commit

Permalink
enable gears for redis 7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ndyakov committed Feb 11, 2025
1 parent 05e052c commit 4f410ad
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion gears_commands_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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"))
Expand All @@ -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"))
Expand All @@ -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())
Expand All @@ -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())
Expand All @@ -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())
Expand All @@ -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())
Expand Down

0 comments on commit 4f410ad

Please sign in to comment.