From 1d3a223419dc6ad36dce9d1375f880ca346f9ec6 Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Mon, 6 Aug 2012 15:45:38 +0300 Subject: [PATCH] Check every req for error. --- redis_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/redis_test.go b/redis_test.go index 7841334..c7a0d6f 100644 --- a/redis_test.go +++ b/redis_test.go @@ -1835,6 +1835,11 @@ func (t *RedisTest) TestIncrPipeliningFromGoroutines(c *C) { reqs, err := multiClient.RunQueued() c.Check(err, IsNil) c.Check(reqs, HasLen, 20000) + for _, req := range reqs { + if req.Err() != nil { + c.Errorf("got %v, expected nil", req.Err()) + } + } get := t.client.Get("TestIncrPipeliningFromGoroutinesKey") c.Check(get.Err(), IsNil) @@ -1857,6 +1862,11 @@ func (t *RedisTest) TestIncrTransaction(c *C) { reqs, err := multiClient.Exec() c.Check(err, IsNil) c.Check(reqs, HasLen, 20000) + for _, req := range reqs { + if req.Err() != nil { + c.Errorf("got %v, expected nil", req.Err()) + } + } get := t.client.Get("TestIncrTransactionKey") c.Check(get.Err(), IsNil)