diff --git a/tests/index.rs b/tests/index.rs index 010795d..0591e54 100644 --- a/tests/index.rs +++ b/tests/index.rs @@ -12,7 +12,7 @@ async fn spawn_app() -> String { let port = listener.local_addr().unwrap().port(); let config = CONFIG.get_or_init(|| Config::parse(false).unwrap()); let cache = websurfx::cache::cacher::create_cache(config).await; - let server = run(listener, config, cache).expect("Failed to bind address"); + let server = run(listener, &config, cache).expect("Failed to bind address"); tokio::spawn(server); format!("http://127.0.0.1:{}/", port)