Browse Source

Deflake pool tests

Gary Burd 8 năm trước cách đây
mục cha
commit
57f1cd7de6
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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
 		}()
 	}