From 7e2f8934392a5e9f6bbd91fd789889af31d8cd22 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 8 Nov 2026 19:02:14 +0100 Subject: [PATCH] huginn import tests: the history has four receipts under the root; the brief test uses the testkit's own instance Co-Authored-By: Claude Opus 5.5 --- crates/eureka-state/tests/cli.rs | 8 ++++---- crates/mind-body/src/self_run/inbox/tests.rs | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/eureka-state/tests/cli.rs b/crates/eureka-state/tests/cli.rs index 9288553..de4b2e0 100644 --- a/crates/eureka-state/tests/cli.rs +++ b/crates/eureka-state/tests/cli.rs @@ -2588,10 +2588,10 @@ fn import_moves_a_campaign_between_two_live_daemons() { let ran = importing(&taker, INSTANCE, giver.addr); assert_eq!(ran.code, 0, "{}{}", ran.out, ran.err); let lines: Vec<&str> = ran.out.lines().collect(); - assert!(lines[0].starts_with(&format!("plan {CAMPAIGN} from {INSTANCE}: 5 receipts ")) && lines[0].contains(", 0 held, moved by "), "{}", lines[0]); - assert_eq!(imported_lines(&ran.out).len(), 5); + assert!(lines[0].starts_with(&format!("plan {CAMPAIGN} from {INSTANCE}: 4 receipts ")) && lines[0].contains(", 0 held, moved by "), "{}", lines[0]); + assert_eq!(imported_lines(&ran.out).len(), 4); let last = lines.last().unwrap(); - assert!(last.starts_with(&format!("imported {CAMPAIGN} from {INSTANCE}: 5 receipts ")) && last.ends_with(", verified"), "{last}"); + assert!(last.starts_with(&format!("imported {CAMPAIGN} from {INSTANCE}: 4 receipts ")) && last.ends_with(", verified"), "{last}"); for id in [campaign_id(), format!("{CAMPAIGN}:question:Q1"), format!("{CAMPAIGN}:question:Q2"), format!("{CAMPAIGN}:ruling:R1"), format!("{CAMPAIGN}:cut_spec:cut-1.r1")] { let (there, here) = (shown_by(&taker, TAKER, &id, true), shown_by(&giver, INSTANCE, &id, true)); @@ -2651,7 +2651,7 @@ fn import_declares_only_unheld_foreign_referents() { let taker = serve(root, daemon); let ran = importing(&taker, INSTANCE, giver.addr); assert_eq!(ran.code, 0, "holding {holding}: {}{}", ran.out, ran.err); - let spec_line = imported_lines(&ran.out).into_iter().find(|line| line.ends_with("(5/5)")).expect("the spec's receipt is last"); + let spec_line = imported_lines(&ran.out).into_iter().find(|line| line.ends_with("(4/4)")).expect("the spec's receipt is last"); let declared = if holding { " 0 external " } else { " 1 external " }; assert!(spec_line.contains(declared), "holding {holding}: {spec_line}"); assert!(ran.out.trim_end().ends_with(", verified")); diff --git a/crates/mind-body/src/self_run/inbox/tests.rs b/crates/mind-body/src/self_run/inbox/tests.rs index e04704d..fd3ca64 100644 --- a/crates/mind-body/src/self_run/inbox/tests.rs +++ b/crates/mind-body/src/self_run/inbox/tests.rs @@ -112,7 +112,7 @@ fn a_tell_names_each_brief_the_plan_and_how_she_resolves_it() { #[test] fn imported_briefs_are_not_her_briefs() { // A campaign moved to her: the giver's Persona admitted this brief, and her Self run imports it. - let mind = TestMind::seeded_as("heimdall"); + let mind = TestMind::seeded(); let persona = run_ref("persona"); let source = huginn_mind::ImportSource { instance: "eureka".into(), @@ -126,7 +126,7 @@ fn imported_briefs_are_not_her_briefs() { external: vec![persona.clone()], }; let batch = huginn_mind::PipelineAdmissionBatch { - instance: "heimdall".into(), + instance: crate::testkit::INSTANCE.into(), provenance: huginn_mind::PipelineProvenance { faculty: huginn_mind::Faculty::SelfFaculty, agent: SELF_RUN.into(),