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 <imagesai32@gmail.com>
This commit is contained in:
Aldrin 2024-04-28 11:35:25 +05:30 committed by GitHub
parent cb8dbc3c83
commit 51297b51e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 := &paramtable.Get().EtcdCfg
rand.Seed(time.Now().UnixNano())