Browse Source

Merge pull request #4572 from xiang90/fix_tester_leak

tools/functional-tester: fix leaky issue by closing conn
Xiang Li 9 years ago
parent
commit
25b4b8560b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tools/functional-tester/etcd-tester/cluster.go

+ 1 - 0
tools/functional-tester/etcd-tester/cluster.go

@@ -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
 		}