Browse Source

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

Xiang Li 10 years ago
parent
commit
e316678a4d
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
 		}