From 77419242cd4763f43cdb71ae82f0ae59c2eb06f6 Mon Sep 17 00:00:00 2001 From: Ryan Leung Date: Thu, 8 Aug 2024 15:59:10 +0800 Subject: [PATCH] *: not use a fixed port number (#8506) ref tikv/pd#7969 Signed-off-by: Ryan Leung Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com> --- tools/pd-ut/alloc/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/pd-ut/alloc/server.go b/tools/pd-ut/alloc/server.go index aced73467fb..a5643001142 100644 --- a/tools/pd-ut/alloc/server.go +++ b/tools/pd-ut/alloc/server.go @@ -28,7 +28,7 @@ import ( "go.uber.org/zap" ) -var statusAddress = flag.String("status-addr", "0.0.0.0:20180", "status address") +var statusAddress = flag.String("status-addr", "0.0.0.0:0", "status address") func RunHTTPServer() *http.Server { err := os.Setenv(tempurl.AllocURLFromUT, fmt.Sprintf("http://%s/alloc", *statusAddress))