浏览代码

Deflake pool tests

Gary Burd 8 年之前
父节点
当前提交
57f1cd7de6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      redis/pool_test.go

+ 1 - 1
redis/pool_test.go

@@ -437,8 +437,8 @@ func startGoroutines(p *redis.Pool, cmd string, args ...interface{}) chan error
 		go func() {
 			c := p.Get()
 			_, err := c.Do(cmd, args...)
-			errs <- err
 			c.Close()
+			errs <- err
 		}()
 	}