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
5
5
import (
6
6
"context"
7
7
"fmt"
8
+ "slices"
9
+ "strings"
8
10
9
11
"github.com/redis/go-redis/v9"
10
12
)
@@ -274,11 +276,16 @@ func ExampleClient_query_em() {
274
276
275
277
fmt .Println (res3 .Total ) // >>> 5
276
278
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 {
278
285
fmt .Println (doc .ID )
279
286
}
280
- // >>> bicycle:5
281
287
// >>> bicycle:0
288
+ // >>> bicycle:5
282
289
// >>> bicycle:6
283
290
// >>> bicycle:7
284
291
// >>> bicycle:8
@@ -350,8 +357,8 @@ func ExampleClient_query_em() {
350
357
// 1
351
358
// bicycle:0
352
359
// 5
353
- // bicycle:5
354
360
// bicycle:0
361
+ // bicycle:5
355
362
// bicycle:6
356
363
// bicycle:7
357
364
// bicycle:8
Original file line number Diff line number Diff line change @@ -34,7 +34,8 @@ func libCodeWithConfig(libName string) string {
34
34
return fmt .Sprintf (lib , libName )
35
35
}
36
36
37
- var _ = Describe ("RedisGears commands" , Label ("gears" ), func () {
37
+ // TODO: Drop Gears
38
+ var _ = XDescribe ("RedisGears commands" , Label ("gears" ), func () {
38
39
ctx := context .TODO ()
39
40
var client * redis.Client
40
41
You can’t perform that action at this time.
0 commit comments