Corrected external add document issue.
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:
@@ -106,7 +106,7 @@ mod createdocs {
|
||||
fn create_document_creation() {
|
||||
let doc_creator = TestCreateDoc::new();
|
||||
let paths = [
|
||||
Path::new(Include::All, Include::All, Include::Just(Action::Reply)),
|
||||
Path::new(Include::All, Include::All, Include::Just(Action::DocumentCreated)),
|
||||
Path::new(Include::All, Include::All, Include::Just(Action::Records)),
|
||||
]
|
||||
.to_vec();
|
||||
@@ -124,7 +124,7 @@ mod createdocs {
|
||||
rx
|
||||
);
|
||||
match result1.get_action() {
|
||||
MsgAction::Reply(_) => {}
|
||||
MsgAction::DocumentCreated => {}
|
||||
_ => unreachable!("got {:?}: should have been a reply.", result1.get_action()),
|
||||
}
|
||||
let msg2 = Message::new(Query::new(name.clone()));
|
||||
@@ -547,7 +547,7 @@ impl DocumentFile {
|
||||
spawn(move || {
|
||||
doc.listen();
|
||||
});
|
||||
let reply = msg.response(Reply::new(names[0].clone()));
|
||||
let reply = msg.response(MsgAction::DocumentCreated);
|
||||
queue.send(reply.clone());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user