feat: use custom logger with timestamp in rfc3339 (#67)

This commit is contained in:
sigoden
2022-06-21 21:19:51 +08:00
committed by GitHub
parent ea8b9e9cce
commit 7f062b6705
8 changed files with 45 additions and 68 deletions

View File

@@ -76,12 +76,12 @@ fn get_dir_search(#[with(&["-A"])] server: TestServer) -> Result<(), Error> {
#[rstest]
fn get_dir_search2(#[with(&["-A"])] server: TestServer) -> Result<(), Error> {
let resp = reqwest::blocking::get(format!("{}?q={}", server.url(), "😀.data"))?;
let resp = reqwest::blocking::get(format!("{}?q={}", server.url(), "😀.bin"))?;
assert_eq!(resp.status(), 200);
let paths = utils::retrive_index_paths(&resp.text()?);
assert!(!paths.is_empty());
for p in paths {
assert!(p.contains(&"😀.data"));
assert!(p.contains(&"😀.bin"));
}
Ok(())
}