Altered populate function.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s
This commit is contained in:
@@ -13,7 +13,7 @@ fn can_delete() {
|
||||
let mut mtt = MoreThanText::new();
|
||||
let test_doc = TestDocument::new(vec![FieldType::StaticString]);
|
||||
mtt.create_document(test_doc.get_docdef()).unwrap();
|
||||
test_doc.populate(&mut mtt, vec![data]);
|
||||
test_doc.populate(mtt.clone(), vec![data]);
|
||||
let delete = Delete::new(test_doc.get_doc_name());
|
||||
let result = mtt.records(delete).unwrap();
|
||||
assert_eq!(result.len(), 1);
|
||||
@@ -133,7 +133,7 @@ fn does_delete_update_indexes() {
|
||||
let mut docdef = test_doc.get_docdef();
|
||||
docdef.add_index(&test_doc.get_field_name(0), IndexType::Unique);
|
||||
mtt.create_document(docdef).unwrap();
|
||||
test_doc.populate(&mut mtt, vec![id]);
|
||||
test_doc.populate(mtt.clone(), vec![id]);
|
||||
mtt.records(Delete::new(test_doc.get_doc_name())).unwrap();
|
||||
let mut add = Addition::new(test_doc.get_doc_name());
|
||||
add.add_field(test_doc.get_field_name(0), id);
|
||||
|
||||
Reference in New Issue
Block a user