diff options
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/lib.rs b/src/lib.rs index 6a0a1cc..2fe87f4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -82,17 +82,6 @@ pub async fn get_app_with_redis(token_endpoint: surf::Url, redis_uri: String, me } #[cfg(test)] -pub async fn get_app_with_memory_for_testing(token_endpoint: surf::Url) -> (database::MemoryStorage, App<database::MemoryStorage>) { - let database = database::MemoryStorage::new(); - let app = tide::with_state(ApplicationState { - token_endpoint, media_endpoint: None, - storage: database.clone(), - http_client: surf::Client::new(), - }); - - return (database, equip_app(app)) -} -#[cfg(test)] pub async fn get_app_with_test_redis(token_endpoint: surf::Url) -> (tempdir::TempDir, std::process::Child, database::RedisStorage, App<database::RedisStorage>) { let (tempdir, child, uri) = crate::database::get_redis_instance().await; let backend = database::RedisStorage::new(uri).await.unwrap(); |