This commit is contained in:
parent
6f931ce46f
commit
26a5025a32
@ -23,11 +23,7 @@ macro_rules! test_service {
|
|||||||
let cache_dir = dbg!(tempdir().unwrap());
|
let cache_dir = dbg!(tempdir().unwrap());
|
||||||
let repos = format!("{}/", repo_dir.path().display());
|
let repos = format!("{}/", repo_dir.path().display());
|
||||||
let cache = format!("{}/", cache_dir.path().display());
|
let cache = format!("{}/", cache_dir.path().display());
|
||||||
let state = dbg!(State {
|
let state = dbg!(State { repos, cache });
|
||||||
repos,
|
|
||||||
cache,
|
|
||||||
logger: crate::config::init(),
|
|
||||||
});
|
|
||||||
|
|
||||||
let mut app = test_app!(state, web::resource($path).to($what::<T>));
|
let mut app = test_app!(state, web::resource($path).to($what::<T>));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user