From a8f99bb1097865ac992711a715f5d4e76f3206a2 Mon Sep 17 00:00:00 2001 From: Vika Date: Mon, 17 May 2021 05:36:44 +0300 Subject: Fixed failing tests --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index ed30b94..fdbd2d3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -57,6 +57,8 @@ pub async fn get_app_with_redis(token_endpoint: surf::Url, authorization_endpoin #[cfg(test)] pub async fn get_app_with_test_redis(token_endpoint: surf::Url) -> (database::RedisInstance, database::RedisStorage, App) { + use surf::Url; + let redis_instance = database::get_redis_instance().await; let backend = database::RedisStorage::new(redis_instance.uri().to_string()).await.unwrap(); let app = tide::with_state(ApplicationState { -- cgit 1.4.1