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 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-11-08 19:02:14 +01:00
commit 7e2f893439
2 changed files with 6 additions and 6 deletions

View file

@ -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"));

View file

@ -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(),