mirror of
https://relay.ngit.dev/npub15qydau2hjma6ngxkl2cyar74wzyjshvl65za5k5rl69264ar2exs5cyejr/ngit-grasp.git
synced 2026-10-05 15:08:24 +00:00
test(sync): allow all eligible fallback authors in discovery logs
Repository owners and issue authors can complete NIP-65 discovery in the same batch, producing two fallback authors rather than one. Assert that fallback coverage is active without depending on batching order. The preceding exact-event check still proves that the reply was fetched from the fallback relay. All four proactive mailbox integration tests pass; no production behavior or timeout changes are included. Assisted-by: Codex (GPT-6)
This commit is contained in:
@@ -481,7 +481,11 @@ async fn missing_relay_list_uses_bounded_fallback_coverage() {
|
||||
assert!(
|
||||
sync_log.lines().any(|line| {
|
||||
line.contains("Updated proactive participant mailbox coverage from NIP-65")
|
||||
&& line.contains("fallback_authors=1")
|
||||
&& line.split_whitespace().any(|field| {
|
||||
field
|
||||
.strip_prefix("fallback_authors=")
|
||||
.is_some_and(|count| count.parse::<usize>().is_ok_and(|count| count > 0))
|
||||
})
|
||||
}),
|
||||
"fallback activation should remain observable"
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user