diff options
author | Vika <vika@fireburn.ru> | 2021-05-05 16:33:54 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2021-05-05 16:33:54 +0300 |
commit | 3c19ea0eccc25f983a9558d7120884d16b4721c4 (patch) | |
tree | 2b4e94268ae715997cd9f2c6bc4a01143d1bfb7a /src/database/mod.rs | |
parent | a5963bbdb7464709232486bfe46ccbea3366b226 (diff) | |
download | kittybox-3c19ea0eccc25f983a9558d7120884d16b4721c4.tar.zst |
Removed the in-memory database, it's dragging me down
Diffstat (limited to 'src/database/mod.rs')
-rw-r--r-- | src/database/mod.rs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/database/mod.rs b/src/database/mod.rs index 1a6aa84..d6b7dd6 100644 --- a/src/database/mod.rs +++ b/src/database/mod.rs @@ -7,10 +7,6 @@ mod redis; pub use crate::database::redis::RedisStorage; #[cfg(test)] pub use redis::tests::get_redis_instance; -#[cfg(test)] -mod memory; -#[cfg(test)] -pub(crate) use crate::database::memory::MemoryStorage; #[derive(Serialize, Deserialize, PartialEq, Debug)] pub struct MicropubChannel { @@ -225,17 +221,6 @@ mod tests { } #[async_std::test] - async fn test_memory_storage_basic_operations() { - let backend = super::MemoryStorage::new(); - test_backend_basic_operations(backend).await - } - #[async_std::test] - async fn test_memory_storage_channel_support() { - let backend = super::MemoryStorage::new(); - test_backend_get_channel_list(backend).await - } - - #[async_std::test] async fn test_redis_storage_basic_operations() { let (tempdir, mut redis, uri) = get_redis_instance().await; let backend = super::RedisStorage::new(uri).await.unwrap(); |