tools/functional-tester: fix leaky issue by closing conn

release-2.3
Xiang Li 2016-02-19 21:57:25 -08:00
parent c3824b10da
commit e316678a4d
1 changed files with 1 additions and 0 deletions

View File

@ -269,6 +269,7 @@ func setHealthKey(us []string) error {
kvc := pb.NewKVClient(conn)
_, err = kvc.Put(ctx, &pb.PutRequest{Key: []byte("health"), Value: []byte("good")})
cancel()
conn.Close()
if err != nil {
return err
}