Removed warnings from document tests.
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:
@@ -1,18 +1,14 @@
|
|||||||
mod support;
|
mod support;
|
||||||
|
|
||||||
use morethantext::{action::*, ErrorID, Include, MoreThanText, Name, Path, TestMoreThanText};
|
use morethantext::{action::*, ErrorID, Include, MoreThanText, Name, Path, TestMoreThanText};
|
||||||
use std::{
|
use std::{sync::mpsc::RecvTimeoutError, time::Duration};
|
||||||
sync::mpsc::{channel, RecvTimeoutError},
|
|
||||||
time::Duration,
|
|
||||||
};
|
|
||||||
use support::random_name;
|
use support::random_name;
|
||||||
use uuid::Uuid;
|
|
||||||
|
|
||||||
pub static TIMEOUT: Duration = Duration::from_millis(500);
|
pub static TIMEOUT: Duration = Duration::from_millis(500);
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn are_errors_produced_for_duplicate_names() {
|
fn are_errors_produced_for_duplicate_names() {
|
||||||
let mut mtt = MoreThanText::new();
|
let mtt = MoreThanText::new();
|
||||||
let client = mtt.client();
|
let client = mtt.client();
|
||||||
let docdef = DocDef::new(Name::english("duplicate"));
|
let docdef = DocDef::new(Name::english("duplicate"));
|
||||||
client.create_document(docdef.clone()).unwrap();
|
client.create_document(docdef.clone()).unwrap();
|
||||||
@@ -27,7 +23,7 @@ fn are_errors_produced_for_duplicate_names() {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn does_document_respond_to() {
|
fn does_document_respond_to() {
|
||||||
let mut mtt = MoreThanText::new();
|
let mtt = MoreThanText::new();
|
||||||
let client = mtt.client();
|
let client = mtt.client();
|
||||||
let doc_name = random_name();
|
let doc_name = random_name();
|
||||||
let mut requests: Vec<ClientAction> = Vec::new();
|
let mut requests: Vec<ClientAction> = Vec::new();
|
||||||
@@ -46,7 +42,7 @@ fn does_document_respond_to() {
|
|||||||
#[test]
|
#[test]
|
||||||
fn does_document_ignore_other_document_requests() {
|
fn does_document_ignore_other_document_requests() {
|
||||||
let mut test_env = TestMoreThanText::new();
|
let mut test_env = TestMoreThanText::new();
|
||||||
let mut mtt = test_env.get_morethantext();
|
let mtt = test_env.get_morethantext();
|
||||||
let client = mtt.client();
|
let client = mtt.client();
|
||||||
let quiet = Name::english("quiet");
|
let quiet = Name::english("quiet");
|
||||||
let alt = Name::english("alt");
|
let alt = Name::english("alt");
|
||||||
|
|||||||
Reference in New Issue
Block a user