From 51297b51e1ca0e4e115c50a3f5c68a59ae3d8691 Mon Sep 17 00:00:00 2001 From: Aldrin Date: Sun, 28 Apr 2024 11:35:25 +0530 Subject: [PATCH] fix: Removed chance for port conflict in service_test (#32626) issue: https://github.com/milvus-io/milvus/issues/32286 - Avoided chance for server initialisation at port 10000 Signed-off-by: Aldrin --- internal/distributed/rootcoord/service_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/distributed/rootcoord/service_test.go b/internal/distributed/rootcoord/service_test.go index 4ba6fc3b3d..e758dbf2bb 100644 --- a/internal/distributed/rootcoord/service_test.go +++ b/internal/distributed/rootcoord/service_test.go @@ -149,7 +149,7 @@ func TestRun(t *testing.T) { return mockQueryCoord } - paramtable.Get().Save(rcServerConfig.Port.Key, fmt.Sprintf("%d", rand.Int()%100+10000)) + paramtable.Get().Save(rcServerConfig.Port.Key, fmt.Sprintf("%d", rand.Int()%100+10010)) etcdConfig := ¶mtable.Get().EtcdCfg rand.Seed(time.Now().UnixNano())