Moved failed to find document into lib tests.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s

This commit is contained in:
2026-02-25 13:44:43 -05:00
parent 5251689158
commit 97f9d24330
8 changed files with 50 additions and 37 deletions

View File

@@ -116,14 +116,27 @@ impl MoreThanText {
),
Path::new(
Include::Just(msg_id.clone()),
Include::Just(doc_id.clone()),
Include::All,
Include::Just(Action::Error),
),
];
for path in paths.iter() {
let reg_msg = Register::new(sender_id.clone(), RegMsg::AddRoute(path.clone()));
self.queue.send(Message::new(reg_msg));
rx.recv().unwrap(); // Wait for completion.
let result = rx.recv().unwrap();
let action = result.get_action();
match action {
MsgAction::Register(status) => match status.get_msg() {
RegMsg::Error(err) => {
let mut error = err.clone();
error.add_parent(ErrorID::Document(msg.doc_name().clone()));
self.queue.remove_sender(&sender_id);
return Err(error);
}
_ => {}
}
_ => unreachable!("got {:?} should have been a registry message", action),
}
}
self.queue.send(msg);
let output = match rx.recv_timeout(TIMEOUT) {