Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2019-06-25 20:43:36 +0300
committerJohn Cai <jcai@gitlab.com>2019-06-25 20:43:36 +0300
commit261e377bce0857c7ffc56e9ccbe273818312946b (patch)
tree0bd143f0977ae18acb2c64799693136be1214db6
parenta3220e688e0182162e04fef2111b8bc4a0890ce7 (diff)
Close client connections in client.TestDial
-rw-r--r--client/dial_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/client/dial_test.go b/client/dial_test.go
index 9c3e392a8..d535767f4 100644
--- a/client/dial_test.go
+++ b/client/dial_test.go
@@ -25,6 +25,7 @@ func doDialAndExecuteCall(addr string) error {
if err != nil {
return fmt.Errorf("dial: %v", err)
}
+ defer conn.Close()
client := healthpb.NewHealthClient(conn)
_, err = client.Check(context.Background(), &healthpb.HealthCheckRequest{})