diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2019-06-25 20:43:36 +0300 |
---|---|---|
committer | John Cai <jcai@gitlab.com> | 2019-06-25 20:43:36 +0300 |
commit | 261e377bce0857c7ffc56e9ccbe273818312946b (patch) | |
tree | 0bd143f0977ae18acb2c64799693136be1214db6 | |
parent | a3220e688e0182162e04fef2111b8bc4a0890ce7 (diff) |
Close client connections in client.TestDial
-rw-r--r-- | client/dial_test.go | 1 |
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{}) |