Moved support to client.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled

This commit is contained in:
2026-03-25 10:28:25 -04:00
parent 64e9a38f38
commit 20e7aa69ff

View File

@@ -8,8 +8,9 @@ pub fn random_name() -> Name {
pub fn setup_range(count: usize) -> (TestMoreThanText, TestDocument) {
let test_env = TestMoreThanText::new();
let mut mtt = test_env.get_morethantext();
let client = mtt.client();
let test_doc = TestDocument::new(vec![FieldType::Integer]);
mtt.create_document(test_doc.get_docdef()).unwrap();
client.create_document(test_doc.get_docdef()).unwrap();
let mut data: Vec<Vec<i128>> = Vec::new();
for i in 0..count {
let holder: i128 = i.try_into().unwrap();
@@ -72,7 +73,7 @@ impl TestDocument {
let field: Field = rec[i].clone().into();
add.add_field(self.field_names[i].clone(), field);
}
mtt.records(add).unwrap();
mtt.client().records(add).unwrap();
}
}
}