fix: [2.4] Wait StandBy server ready for testcase (#32216) (#32230)

Cherry-pick from master
pr: #32216
See also #32069

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

View File

@ -3593,6 +3593,10 @@ func TestDataCoord_EnableActiveStandby(t *testing.T) {
defer paramtable.Get().Reset(Params.DataCoordCfg.EnableActiveStandby.Key)
svr := testDataCoordBase(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 TestDataNodeTtChannel(t *testing.T) {