mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
remove: Remove unnecssary tests
This commit is contained in:
@ -8,8 +8,6 @@ pub mod config;
|
|||||||
pub mod network;
|
pub mod network;
|
||||||
pub mod service;
|
pub mod service;
|
||||||
pub mod sources;
|
pub mod sources;
|
||||||
#[cfg(test)]
|
|
||||||
mod tests;
|
|
||||||
pub mod utils;
|
pub mod utils;
|
||||||
|
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|||||||
@ -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"))
|
|
||||||
);
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user