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")) - ); -}