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:
DanConwayDev
2026-09-21 08:53:01 +00:00
parent a82ce6d1ff
commit ce1784be4a
+5 -1
View File
@@ -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"
);