diff options
author | Vika <vika@fireburn.ru> | 2021-05-17 05:36:44 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2021-05-17 05:36:44 +0300 |
commit | a8f99bb1097865ac992711a715f5d4e76f3206a2 (patch) | |
tree | f1494c6995cf331a85b101c5b0ae2e8ee71bc387 | |
parent | 696ae495aca701c3431710e5dfc03e15aba2f74e (diff) | |
download | kittybox-a8f99bb1097865ac992711a715f5d4e76f3206a2.tar.zst |
Fixed failing tests
-rw-r--r-- | src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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<database::RedisStorage>) { + 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 { |