fix: [2.3] Wait StandBy server ready for testcase (#32216) (#32231)

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

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
congqixia 2024-04-13 12:03:23 +08:00 committed by GitHub
parent d635495885
commit 02acb9f7dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4667,6 +4667,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) {