From 28f75112f6a4f09471de2c751215a902ce4ccccb Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 28 Nov 2026 04:19:54 +0100 Subject: [PATCH] resolve intake: the late composition test reads the composition's text, since the body takes the Use's id --- crates/thing-core/tests/intake.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/crates/thing-core/tests/intake.rs b/crates/thing-core/tests/intake.rs index f5778e9..3dca202 100644 --- a/crates/thing-core/tests/intake.rs +++ b/crates/thing-core/tests/intake.rs @@ -197,17 +197,16 @@ fn a_composition_published_late_replaces_the_placeholder_without_a_republish() { let document = surface("main", 1, vec![use_of("ghost-use", "ghost")]); let key = document.record_key(); assert_eq!(codes(&rig.offer(&document)), vec![Code::UnresolvedUse]); - assert!(!rig.shows(&key, "ghost-body")); + assert!(!rig.shows(&key, "\"boo\"")); rig.put(&composition("ghost", "boo")); assert!(rig.settle().is_empty()); - eprintln!("DBG {:?} calls {:?}", rig.resolver.tree(&key).map(|t| format!("{:?}", t.document().root)), rig.state.calls()); - assert!(rig.shows(&key, "ghost-body")); + assert!(rig.shows(&key, "\"boo\"")); // It goes away: the placeholder returns, and the interest stays. rig.state.delete(&comp_address("ghost")); assert_eq!(codes(&rig.settle()), vec![Code::UnresolvedUse]); - assert!(!rig.shows(&key, "ghost-body")); + assert!(!rig.shows(&key, "\"boo\"")); // It comes back refused: a refusal is not absence. rig.state.put_raw(comp_address("ghost"), vec![0xc1]);