mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
Change API and update tests.
This commit is contained in:
@ -35,9 +35,8 @@ func (t *RequestTest) BenchmarkStatusReq(c *C) {
|
||||
c.Check(vI, Equals, "OK")
|
||||
|
||||
req.SetVal(vI)
|
||||
v, err := req.Reply()
|
||||
c.Check(err, IsNil)
|
||||
c.Check(v, Equals, "OK")
|
||||
c.Check(req.Err(), IsNil)
|
||||
c.Check(req.Val(), Equals, "OK")
|
||||
}
|
||||
|
||||
c.StartTimer()
|
||||
@ -46,6 +45,7 @@ func (t *RequestTest) BenchmarkStatusReq(c *C) {
|
||||
rd.ResetPos()
|
||||
v, _ := req.ParseReply(rd)
|
||||
req.SetVal(v)
|
||||
req.Reply()
|
||||
req.Err()
|
||||
req.Val()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user