From 4909108be3d37593384d6c19d7db83852f865631 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 3 Nov 2026 02:16:08 +0100 Subject: [PATCH] forge test: the busy org's feed is served at its own path, not at the org listing too (a cap had hidden that the listing was endless) Co-Authored-By: Claude Opus 5.5 --- crates/huginn-daemon/src/sources/forge.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/huginn-daemon/src/sources/forge.rs b/crates/huginn-daemon/src/sources/forge.rs index c1f6831..9230547 100644 --- a/crates/huginn-daemon/src/sources/forge.rs +++ b/crates/huginn-daemon/src/sources/forge.rs @@ -478,7 +478,7 @@ mod tests { let busy: Vec = (0..500).map(|n| push_at(10_000 - n, "GameCult/Eureka", "eureka", 1)).collect(); let busy = Value::Array(busy).to_string(); let hers = vec![push_at(300, "GameCult/Ratatoskr", "Nibu", 60)]; - let (base, asked) = forge_of(move |path| if path.contains("/orgs/") { Some(busy.clone()) } else { repo_feed(&hers, path).or_else(|| Some("[]".into())) }); + let (base, asked) = forge_of(move |path| if path.contains("/orgs/GameCult/activities") { Some(busy.clone()) } else { repo_feed(&hers, path).or_else(|| Some("[]".into())) }); let read = HttpForge::new(&base).activity(&repos(&["GameCult/Ratatoskr"]), &me(), None, at(NOW)).unwrap(); assert_eq!(read.events.iter().map(|event| event.id).collect::>(), [300]); assert!(!read.more);