From ad4a8cd365ef2fc0be565b23c32fce5c24f94f68 Mon Sep 17 00:00:00 2001 From: sprites0 <199826320+sprites0@users.noreply.github.com> Date: Mon, 25 Aug 2025 21:12:34 -0400 Subject: [PATCH] remove: Remove unnecssary tests --- src/pseudo_peer/mod.rs | 2 -- src/pseudo_peer/tests.rs | 19 ------------------- 2 files changed, 21 deletions(-) delete mode 100644 src/pseudo_peer/tests.rs diff --git a/src/pseudo_peer/mod.rs b/src/pseudo_peer/mod.rs index c540d6891..612c09b55 100644 --- a/src/pseudo_peer/mod.rs +++ b/src/pseudo_peer/mod.rs @@ -8,8 +8,6 @@ pub mod config; pub mod network; pub mod service; pub mod sources; -#[cfg(test)] -mod tests; pub mod utils; use std::sync::Arc; diff --git a/src/pseudo_peer/tests.rs b/src/pseudo_peer/tests.rs deleted file mode 100644 index 7e71e223a..000000000 --- a/src/pseudo_peer/tests.rs +++ /dev/null @@ -1,19 +0,0 @@ -use std::path::Path; - -use crate::pseudo_peer::{prelude::*, BlockSourceType}; - -#[tokio::test] -async fn test_block_source_config_s3() { - let config = BlockSourceConfig::s3("test-bucket".to_string()).await; - assert!( - matches!(config.source_type, BlockSourceType::S3 { bucket } if bucket == "test-bucket") - ); -} - -#[tokio::test] -async fn test_block_source_config_local() { - let config = BlockSourceConfig::local("/test/path".into()); - assert!( - matches!(config.source_type, BlockSourceType::Local { path } if path == Path::new("/test/path")) - ); -}