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:
@@ -35,7 +35,7 @@ fn does_it_update_information() {
|
||||
let mut input: Vec<Field> = Vec::new();
|
||||
input.push(field0.clone().into());
|
||||
input.push("old".into());
|
||||
test_doc.populate(&mut mtt, input);
|
||||
test_doc.populate(mtt.clone(), input);
|
||||
let mut update = Update::new(test_doc.get_doc_name());
|
||||
update.add_field(test_doc.get_field_name(1), field1);
|
||||
let mut calc = Calculation::new(Operand::Equal);
|
||||
@@ -205,7 +205,7 @@ fn does_update_maintain_unique_index() {
|
||||
mtt.create_document(docdef);
|
||||
let old_data = "old";
|
||||
let new_data = "new";
|
||||
test_doc.populate(&mut mtt, vec![old_data]);
|
||||
test_doc.populate(mtt.clone(), vec![old_data]);
|
||||
let mut update = Update::new(test_doc.get_doc_name());
|
||||
update.add_field(test_doc.get_field_name(0), new_data);
|
||||
mtt.records(update).unwrap();
|
||||
@@ -242,7 +242,7 @@ fn does_index_remain_unchanged_on_update_failure() {
|
||||
docdef.add_index(&test_doc.get_field_name(0), IndexType::Unique);
|
||||
mtt.create_document(docdef);
|
||||
let id = "one";
|
||||
test_doc.populate(&mut mtt, vec!["one", "data"]);
|
||||
test_doc.populate(mtt.clone(), vec!["one", "data"]);
|
||||
let mut update = Update::new(test_doc.get_doc_name());
|
||||
update.add_field(test_doc.get_field_name(0), "two");
|
||||
update.add_field(test_doc.get_field_name(1), 2);
|
||||
@@ -270,7 +270,7 @@ fn does_update_error_when_it_overrides_unique_index() {
|
||||
for i in 0..count {
|
||||
input.push(vec![i]);
|
||||
}
|
||||
test_doc.populate_multiple(&mut mtt, input);
|
||||
test_doc.populate_multiple(mtt.clone(), input);
|
||||
let new_data = 5;
|
||||
let mut update = Update::new(test_doc.get_doc_name());
|
||||
update.add_field(test_doc.get_field_name(0), new_data.clone());
|
||||
|
||||
Reference in New Issue
Block a user