mirror of
https://relay.ngit.dev/npub15qydau2hjma6ngxkl2cyar74wzyjshvl65za5k5rl69264ar2exs5cyejr/ngit-grasp.git
synced 2026-10-06 15:38:25 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user