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
3
3
import "context"
4
4
5
5
func (c cmdable ) Do (ctx context.Context , args ... interface {}) * Cmd {
6
- cmd := NewCmd (ctx , args )
6
+ cmd := NewCmd (ctx , args ... )
7
7
_ = c (ctx , cmd )
8
8
return cmd
9
9
}
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ var _ = Describe("Do cmdble", func() {
12
12
13
13
BeforeEach (func () {
14
14
client = redis .NewClient (redisOptions ())
15
- Expect (client .FlushDB (ctx ).Err ()).NotTo (HaveOccurred ())
16
15
})
17
16
18
17
AfterEach (func () {
@@ -22,6 +21,6 @@ var _ = Describe("Do cmdble", func() {
22
21
It ("should pong with Do cmd" , func () {
23
22
result := client .Conn ().Do (ctx , "PING" )
24
23
Expect (result .Result ()).To (Equal ("PONG" ))
25
- Expect (result .Err ()).NotTo (HaveOccurred ())
24
+ Expect (result .Err ()).ShouldNot (HaveOccurred ())
26
25
})
27
26
})
You can’t perform that action at this time.
0 commit comments