From ce1784be4a6d4069f958d9b71ac17ef0b8a6c541 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Mon, 21 Sep 2026 08:53:01 +0000 Subject: [PATCH] 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) --- tests/sync/proactive_sync_plus.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/sync/proactive_sync_plus.rs b/tests/sync/proactive_sync_plus.rs index 3ff951c..0312991 100644 --- a/tests/sync/proactive_sync_plus.rs +++ b/tests/sync/proactive_sync_plus.rs @@ -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::().is_ok_and(|count| count > 0)) + }) }), "fallback activation should remain observable" );