File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package redis
33import "context"
44
55func (c cmdable ) Do (ctx context.Context , args ... interface {}) * Cmd {
6- cmd := NewCmd (ctx , args )
6+ cmd := NewCmd (ctx , args ... )
77 _ = c (ctx , cmd )
88 return cmd
99}
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ var _ = Describe("Do cmdble", func() {
1212
1313 BeforeEach (func () {
1414 client = redis .NewClient (redisOptions ())
15- Expect (client .FlushDB (ctx ).Err ()).NotTo (HaveOccurred ())
1615 })
1716
1817 AfterEach (func () {
@@ -22,6 +21,6 @@ var _ = Describe("Do cmdble", func() {
2221 It ("should pong with Do cmd" , func () {
2322 result := client .Conn ().Do (ctx , "PING" )
2423 Expect (result .Result ()).To (Equal ("PONG" ))
25- Expect (result .Err ()).NotTo (HaveOccurred ())
24+ Expect (result .Err ()).ShouldNot (HaveOccurred ())
2625 })
2726})
You can’t perform that action at this time.
0 commit comments