test: Add logic to handle for f.Close() for cmd/argocd/commands/admin (#9963) (#10074)
test: Add logic to handle for f.Close() for cmd/argocd/commands/admin (#9963) (#10074)

Signed-off-by: xin.li <839dcfacf023c2e3008e88a79a2cd06041865aef@daocloud.io>
argoproj/argo-cd,argoproj/argo-cd,argoproj/argo-cd,argoproj/argo-cd,argoproj/argo-cd