fix: Wait StandBy server ready for testcase (#32216)

See also #32069

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
pull/32236/head
congqixia 2024-04-12 23:49:18 +08:00 committed by GitHub
parent b7ff85638d
commit 674991d07c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -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) {