From 2651b57a913147eb27c4d0b87038fcebcebdba54 Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Sun, 13 Jul 2014 15:22:52 +0300 Subject: [PATCH] Better test name. --- redis_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/redis_test.go b/redis_test.go index 1404b8bb..720d63c8 100644 --- a/redis_test.go +++ b/redis_test.go @@ -2579,14 +2579,15 @@ func (t *RedisTest) TestPipelineDiscardQueued(c *C) { c.Assert(pipeline.Close(), IsNil) } -func (t *RedisTest) TestPipelineFunc(c *C) { +func (t *RedisTest) TestPipelined(c *C) { var get *redis.StringCmd - cmds, err := t.client.Pipelined(func(c *redis.Pipeline) error { - get = c.Get("foo") + cmds, err := t.client.Pipelined(func(pipe *redis.Pipeline) error { + get = pipe.Get("foo") return nil }) c.Assert(err, Equals, redis.Nil) c.Assert(cmds, HasLen, 1) + c.Assert(cmds[0], Equals, get) c.Assert(get.Err(), Equals, redis.Nil) c.Assert(get.Val(), Equals, "") }