Took care of the ignores not in main.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s

This commit is contained in:
Jeff Baskin 2026-01-31 11:28:32 -05:00
parent 02c533b53b
commit f2ebe7d95d

View File

@ -139,7 +139,6 @@ mod createdocs {
} }
#[test] #[test]
#[ignore]
fn does_duplicates_generate_error() { fn does_duplicates_generate_error() {
let doc_creator = TestCreateDoc::new(); let doc_creator = TestCreateDoc::new();
let paths = [Path::new( let paths = [Path::new(
@ -1649,29 +1648,6 @@ mod document_files {
} }
} }
#[test]
#[ignore = "may no longer be a valid test. should stop at add_value"]
fn errors_on_bad_field_type() {
let mut doc = TestDocument::new([FieldType::Uuid].to_vec());
doc.start(standard_paths());
doc.populate([Uuid::nil().into()].to_vec());
let mut calc = Calculation::new(Operand::Equal);
calc.add_value("notUUID").unwrap();
calc.add_value(CalcValue::Existing(FieldType::Uuid))
.unwrap();
let mut query = Query::new();
query.add(Name::english("field0"), calc);
doc.send(query);
let result = doc.get_receiver().recv_timeout(TIMEOUT).unwrap();
let action = result.get_action();
match action {
MsgAction::Records(data) => {
assert_eq!(data.len(), 0, "should return one entry:\n{:?}", action);
}
_ => unreachable!("got {:?}: should have been a reply", action),
}
}
#[test] #[test]
fn errors_on_bad_field_type_with_index() { fn errors_on_bad_field_type_with_index() {
let mut doc = TestDocument::new([FieldType::Uuid].to_vec()); let mut doc = TestDocument::new([FieldType::Uuid].to_vec());