Moved create from mtt to client.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
This commit is contained in:
@@ -799,16 +799,17 @@ mod internal_features {
|
||||
let sess_name = Session::doc_names()[0].clone();
|
||||
let mut test_env = TestMoreThanText::new();
|
||||
let mut mtt = test_env.get_morethantext();
|
||||
let client = mtt.client();
|
||||
let name = Name::english("something");
|
||||
let docdef = DocDef::system(name.clone());
|
||||
mtt.create_document(docdef);
|
||||
client.create_document(docdef);
|
||||
let path = Path::new(
|
||||
Include::All,
|
||||
Include::Just(sess_name.clone().into()),
|
||||
Include::Just(Action::Query),
|
||||
);
|
||||
test_env.register_channel(vec![path]);
|
||||
mtt.records(Query::new(name)).unwrap();
|
||||
client.records(Query::new(name)).unwrap();
|
||||
match test_env.recv() {
|
||||
Ok(msg) => unreachable!("got {:?} should have timed out", msg),
|
||||
Err(err) => match err {
|
||||
@@ -823,6 +824,7 @@ mod internal_features {
|
||||
let sess_name = Session::doc_names()[0].clone();
|
||||
let mut test_env = TestMoreThanText::new();
|
||||
let mut mtt = test_env.get_morethantext();
|
||||
let client = mtt.client();
|
||||
let name = Name::english("something");
|
||||
let docdef = DocDef::new(name.clone());
|
||||
mtt.create_document(docdef);
|
||||
@@ -832,7 +834,7 @@ mod internal_features {
|
||||
Include::Just(Action::Query),
|
||||
);
|
||||
test_env.register_channel(vec![path]);
|
||||
mtt.records(Query::new(name)).unwrap();
|
||||
client.records(Query::new(name)).unwrap();
|
||||
match test_env.recv() {
|
||||
Ok(msg) => {}
|
||||
Err(err) => unreachable!("got {:?}, should have requested session", err),
|
||||
|
||||
Reference in New Issue
Block a user