diff --git a/stellar_rust_sdk/src/paths/mod.rs b/stellar_rust_sdk/src/paths/mod.rs index 621cc04..93e5939 100644 --- a/stellar_rust_sdk/src/paths/mod.rs +++ b/stellar_rust_sdk/src/paths/mod.rs @@ -136,6 +136,11 @@ mod tests { use super::{AssetType, IssuedOrNative}; use crate::{horizon_client::HorizonClient, models::*}; + const SOURCE_ASSET_TYPE: &str = "native"; + const SOURCE_AMOUNT: &str = "100.0000000"; + const DESTINATION_ASSET_TYPE: &str = "native"; + const DESTINATION_AMOUNT: &str = "100.0000000"; + #[tokio::test] async fn test_find_payment_paths_request() { use crate::paths::{Asset, PATHS_PATH}; @@ -200,10 +205,6 @@ mod tests { let response = horizon_client.get_find_payment_paths(&request).await; - const SOURCE_ASSET_TYPE: &str = "native"; - const SOURCE_AMOUNT: &str = "100.0000000"; - const DESTINATION_ASSET_TYPE: &str = "native"; - const DESTINATION_AMOUNT: &str = "100.0000000"; assert!(response.clone().is_ok()); let binding = response.unwrap(); @@ -308,11 +309,6 @@ mod tests { .get_list_strict_receive_payment_paths(&request) .await; - const SOURCE_ASSET_TYPE: &str = "native"; - const SOURCE_AMOUNT: &str = "100.0000000"; - const DESTINATION_ASSET_TYPE: &str = "native"; - const DESTINATION_AMOUNT: &str = "100.0000000"; - assert!(response.clone().is_ok()); let binding = response.unwrap(); let response = &binding.embedded().records()[0]; @@ -440,11 +436,6 @@ mod tests { .get_list_strict_send_payment_paths(&request) .await; - const SOURCE_ASSET_TYPE: &str = "native"; - const SOURCE_AMOUNT: &str = "100.0000000"; - const DESTINATION_ASSET_TYPE: &str = "native"; - const DESTINATION_AMOUNT: &str = "100.0000000"; - assert!(response.clone().is_ok()); let binding = response.unwrap(); let response = &binding.embedded().records()[0];