Ver Fonte

Deflake pool tests

Gary Burd há 8 anos atrás
pai
commit
57f1cd7de6
1 ficheiros alterados com 1 adições e 1 exclusões
  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
 		}()
 	}