@@ -59,23 +59,16 @@ var _ = Describe("RedisGears commands", Label("gears"), func() {
59
59
60
60
})
61
61
It ("should TFunctionList" , Label ("gears" , "tfunctionlist" ), func () {
62
- client .TFunctionDelete (ctx , "lib2" ).Result ()
63
62
resultAdd , err := client .TFunctionLoad (ctx , libCode ("lib1" )).Result ()
64
63
Expect (err ).NotTo (HaveOccurred ())
65
64
Expect (resultAdd ).To (BeEquivalentTo ("OK" ))
66
- resultAdd , err = client .TFunctionLoad (ctx , libCode ("lib2" )).Result ()
67
- Expect (err ).NotTo (HaveOccurred ())
68
- Expect (resultAdd ).To (BeEquivalentTo ("OK" ))
69
65
resultList , err := client .TFunctionList (ctx ).Result ()
70
66
Expect (err ).NotTo (HaveOccurred ())
71
67
Expect (resultList [0 ]["engine" ]).To (BeEquivalentTo ("js" ))
72
68
opt := & redis.TFunctionListOptions {Withcode : true , Verbose : 2 }
73
69
resultListArgs , err := client .TFunctionListArgs (ctx , opt ).Result ()
74
70
Expect (err ).NotTo (HaveOccurred ())
75
- Expect (resultListArgs [0 ]["code" ]).To (BeEquivalentTo (libCode ("lib1" )))
76
- resultAdd , err = client .TFunctionDelete (ctx , "lib2" ).Result ()
77
- Expect (err ).NotTo (HaveOccurred ())
78
- Expect (resultAdd ).To (BeEquivalentTo ("OK" ))
71
+ Expect (resultListArgs [0 ]["code" ]).NotTo (BeEquivalentTo ("" ))
79
72
})
80
73
81
74
It ("should TFCall" , Label ("gears" , "tfcall" ), func () {
0 commit comments