File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ package example_commands_test
55import (
66 "context"
77 "fmt"
8+ "slices"
9+ "strings"
810
911 "github.com/redis/go-redis/v9"
1012)
@@ -274,11 +276,16 @@ func ExampleClient_query_em() {
274276
275277 fmt .Println (res3 .Total ) // >>> 5
276278
277- for _ , doc := range res3 .Docs {
279+ docs := res3 .Docs
280+ slices .SortFunc (docs , func (a , b redis.Document ) int {
281+ return strings .Compare (a .ID , b .ID )
282+ })
283+
284+ for _ , doc := range docs {
278285 fmt .Println (doc .ID )
279286 }
280- // >>> bicycle:5
281287 // >>> bicycle:0
288+ // >>> bicycle:5
282289 // >>> bicycle:6
283290 // >>> bicycle:7
284291 // >>> bicycle:8
@@ -350,8 +357,8 @@ func ExampleClient_query_em() {
350357 // 1
351358 // bicycle:0
352359 // 5
353- // bicycle:5
354360 // bicycle:0
361+ // bicycle:5
355362 // bicycle:6
356363 // bicycle:7
357364 // bicycle:8
Original file line number Diff line number Diff line change @@ -34,7 +34,8 @@ func libCodeWithConfig(libName string) string {
3434 return fmt .Sprintf (lib , libName )
3535}
3636
37- var _ = Describe ("RedisGears commands" , Label ("gears" ), func () {
37+ // TODO: Drop Gears
38+ var _ = XDescribe ("RedisGears commands" , Label ("gears" ), func () {
3839 ctx := context .TODO ()
3940 var client * redis.Client
4041
You can’t perform that action at this time.
0 commit comments