test: align collector readiness check with replica eligibility

Use ReplicaEligible instead of PublishHealthy in the heartbeat collector test now that publish health is rebound to publication truth rather than receiver readiness.

Made-with: Cursor
This commit is contained in:
pingqiu
2026-04-04 14:03:21 -07:00
parent 6cad5bb8e1
commit f20ec2ef79

View File

@@ -488,7 +488,7 @@ func TestBlockAssign_CollectorUsesAuthoritativeLifecycle(t *testing.T) {
for {
dataAddr, ctrlAddr := bs.GetReplState(path)
readiness := bs.ReadinessSnapshot(path)
if dataAddr != "" && ctrlAddr != "" && readiness.ReceiverReady && readiness.PublishHealthy {
if dataAddr != "" && ctrlAddr != "" && readiness.ReceiverReady && readiness.ReplicaEligible {
return
}
select {