From b3ff154110ca09f6b6a58db51da4a7816484107f Mon Sep 17 00:00:00 2001 From: Jeff Baskin Date: Wed, 25 Mar 2026 10:13:16 -0400 Subject: [PATCH] Moved create from mtt to client. --- src/document/create.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/document/create.rs b/src/document/create.rs index 68361bc..1744ec5 100644 --- a/src/document/create.rs +++ b/src/document/create.rs @@ -799,16 +799,17 @@ mod internal_features { let sess_name = Session::doc_names()[0].clone(); let mut test_env = TestMoreThanText::new(); let mut mtt = test_env.get_morethantext(); + let client = mtt.client(); let name = Name::english("something"); let docdef = DocDef::system(name.clone()); - mtt.create_document(docdef); + client.create_document(docdef); let path = Path::new( Include::All, Include::Just(sess_name.clone().into()), Include::Just(Action::Query), ); test_env.register_channel(vec![path]); - mtt.records(Query::new(name)).unwrap(); + client.records(Query::new(name)).unwrap(); match test_env.recv() { Ok(msg) => unreachable!("got {:?} should have timed out", msg), Err(err) => match err { @@ -823,6 +824,7 @@ mod internal_features { let sess_name = Session::doc_names()[0].clone(); let mut test_env = TestMoreThanText::new(); let mut mtt = test_env.get_morethantext(); + let client = mtt.client(); let name = Name::english("something"); let docdef = DocDef::new(name.clone()); mtt.create_document(docdef); @@ -832,7 +834,7 @@ mod internal_features { Include::Just(Action::Query), ); test_env.register_channel(vec![path]); - mtt.records(Query::new(name)).unwrap(); + client.records(Query::new(name)).unwrap(); match test_env.recv() { Ok(msg) => {} Err(err) => unreachable!("got {:?}, should have requested session", err),