From 28618ff0195abb6d6a3a3fd65b53d859b6b0944a Mon Sep 17 00:00:00 2001 From: Jeff Baskin Date: Wed, 25 Mar 2026 10:35:37 -0400 Subject: [PATCH] Moved support tests to client. --- tests/support_test.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/support_test.rs b/tests/support_test.rs index 9ff8759..78340f8 100644 --- a/tests/support_test.rs +++ b/tests/support_test.rs @@ -59,6 +59,7 @@ fn can_field_types_be_varied() { fn can_record_be_added_to_document() { let count = 5; let mut mtt = MoreThanText::new(); + let client = mtt.client(); let mut fields: Vec = Vec::new(); let mut input: Vec = Vec::new(); for i in 0..count { @@ -66,10 +67,10 @@ fn can_record_be_added_to_document() { input.push(i.to_string()); } let test_doc = TestDocument::new(fields); - mtt.create_document(test_doc.get_docdef()); + client.create_document(test_doc.get_docdef()); test_doc.populate(mtt.clone(), input); let query = Query::new(test_doc.get_doc_name()); - let results = mtt.records(query).unwrap(); + let results = client.records(query).unwrap(); assert_eq!(results.len(), 1); for rec in results.iter() { for i in 0..count { @@ -83,8 +84,9 @@ fn can_record_be_added_to_document() { fn can_document_be_populated_with_multiple_records() { let count = 5; let mut mtt = MoreThanText::new(); + let client = mtt.client(); let test_doc = TestDocument::new(vec![FieldType::Integer]); - mtt.create_document(test_doc.get_docdef()); + client.create_document(test_doc.get_docdef()); let mut data: Vec> = Vec::new(); for i in 0..count { let item: i128 = i.try_into().unwrap(); @@ -93,6 +95,6 @@ fn can_document_be_populated_with_multiple_records() { } test_doc.populate_multiple(mtt.clone(), data); let query = Query::new(test_doc.get_doc_name()); - let results = mtt.records(query).unwrap(); + let results = client.records(query).unwrap(); assert_eq!(results.len(), count); }