From 26a5025a32cacd290e0ac964d8eb1b218ed1770c Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Fri, 30 Oct 2020 17:15:09 +0100 Subject: [PATCH] Fix state in test --- src/tests.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/tests.rs b/src/tests.rs index 47c838b..eeef7b0 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -23,11 +23,7 @@ macro_rules! test_service { let cache_dir = dbg!(tempdir().unwrap()); let repos = format!("{}/", repo_dir.path().display()); let cache = format!("{}/", cache_dir.path().display()); - let state = dbg!(State { - repos, - cache, - logger: crate::config::init(), - }); + let state = dbg!(State { repos, cache }); let mut app = test_app!(state, web::resource($path).to($what::));