mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-08 01:58:34 +08:00
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:
parent
cb8dbc3c83
commit
51297b51e1
@ -149,7 +149,7 @@ func TestRun(t *testing.T) {
|
|||||||
return mockQueryCoord
|
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
|
etcdConfig := ¶mtable.Get().EtcdCfg
|
||||||
|
|
||||||
rand.Seed(time.Now().UnixNano())
|
rand.Seed(time.Now().UnixNano())
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user