test(sync): allow bounded descendant catch-up to complete

The pre-subscription Layer-3 scenario intentionally publishes a comment before its root has been confirmed. Confirmation can consume a historic batch and the descendant fallback advances on a five-second maintenance tick, so the former five-second deadline could expire before eligible work was scheduled.

Retain the pre-existing-event recovery contract and extend only its bounded observation deadline. The test still requires the comment and its exact parent reference to be recovered.

Validated with the focused Layer-3 live-sync integration test.
This commit is contained in:
DanConwayDev
2026-08-12 15:29:37 +00:00
parent 53388db511
commit b3938c84dd
+3 -1
View File
@@ -461,8 +461,10 @@ async fn test_live_sync_layer3_events() {
.author(keys.public_key())
.id(comment_id);
// Root confirmation can require a historic batch before the bounded
// descendant maintenance tick schedules this pre-existing comment.
let comment_synced =
wait_for_event_on_relay(relay_b.url(), comment_filter, Duration::from_secs(5)).await;
wait_for_event_on_relay(relay_b.url(), comment_filter, Duration::from_secs(20)).await;
println!(
"Comment {} synced to relay_b: {}",
comment_id, comment_synced