Skip to content

Commit

Permalink
Test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Luijken authored and tluijken committed May 30, 2024
1 parent e6c0e43 commit b230149
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions stellar_rust_sdk/src/order_book/details_request.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use crate::{models::Request};

use crate::models::Request;
pub struct SellingAsset(AssetType);
pub struct NoSellingAsset;
pub struct BuyingAsset(AssetType);
Expand Down Expand Up @@ -157,7 +156,7 @@ impl Request for DetailsRequest<SellingAsset, BuyingAsset> {

mod tests {
use crate::models::Request;
use crate::order_book::prelude::{Asset, AssetType, DetailsRequest};
use super::{Asset, AssetType, DetailsRequest};

#[test]
fn test_details_request() {
Expand Down
6 changes: 3 additions & 3 deletions stellar_rust_sdk/src/order_book/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ pub mod tests {

#[tokio::test]
async fn get_order_bookdetails() {
const BIDS_N: &u32 = &250000;
const BIDS_D: &u32 = &21749;
const BIDS_PRICE: &str = "11.4947814";
const BIDS_N: &u32 = &1000;
const BIDS_D: &u32 = &87;
const BIDS_PRICE: &str = "11.4942529";
const BIDS_AMOUNT: &str = "2556626.8467920";

const ASKS_N: &u32 = &2299;
Expand Down

0 comments on commit b230149

Please sign in to comment.