From c2d496f2b40920c034fc907468cbb000f214a6e2 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Fri, 30 Oct 2020 13:20:24 +0100 Subject: [PATCH] Add logger to test state --- src/tests.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/tests.rs b/src/tests.rs index eeef7b0..47c838b 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -23,7 +23,11 @@ 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 }); + let state = dbg!(State { + repos, + cache, + logger: crate::config::init(), + }); let mut app = test_app!(state, web::resource($path).to($what::));