From f20ec2ef79dcbdb5f8766fbfbc15db2ff0246293 Mon Sep 17 00:00:00 2001 From: pingqiu Date: Sat, 4 Apr 2026 14:03:21 -0700 Subject: [PATCH] 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 --- weed/server/block_heartbeat_loop_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/server/block_heartbeat_loop_test.go b/weed/server/block_heartbeat_loop_test.go index 2caa8c03e..e64b4d530 100644 --- a/weed/server/block_heartbeat_loop_test.go +++ b/weed/server/block_heartbeat_loop_test.go @@ -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 {