mirror of https://github.com/milvus-io/milvus.git
fix: Wait StandBy server ready for testcase (#32216)
See also #32069 Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/32236/head
parent
b7ff85638d
commit
674991d07c
|
@ -3217,6 +3217,10 @@ func TestDataCoord_EnableActiveStandby(t *testing.T) {
|
|||
defer paramtable.Get().Reset(Params.DataCoordCfg.EnableActiveStandby.Key)
|
||||
svr := newTestServer(t)
|
||||
defer closeTestServer(t, svr)
|
||||
assert.Eventually(t, func() bool {
|
||||
// return svr.
|
||||
return svr.GetStateCode() == commonpb.StateCode_Healthy
|
||||
}, time.Second*5, time.Millisecond*100)
|
||||
}
|
||||
|
||||
func TestUpdateAutoBalanceConfigLoop(t *testing.T) {
|
||||
|
|
Loading…
Reference in New Issue