Skip to content

Commit

Permalink
fix test_trade_preimage_additional_validation test since price thresh…
Browse files Browse the repository at this point in the history
…old is changed in #1971
  • Loading branch information
shamardy committed Oct 11, 2023
1 parent a9f606d commit ffa733e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mm2src/mm2_main/tests/docker_tests/docker_tests_inner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1782,11 +1782,10 @@ fn test_trade_preimage_additional_validation() {
assert!(!rc.0.is_success(), "trade_preimage success, but should fail: {}", rc.1);
let actual: RpcErrorResponse<trade_preimage_error::PriceTooLow> = serde_json::from_str(&rc.1).unwrap();
assert_eq!(actual.error_type, "PriceTooLow");
// currently the minimum price is 0.00000001
let price_threshold = BigDecimal::from(1) / BigDecimal::from(100_000_000);
// currently the minimum price is any value above 0
let expected = trade_preimage_error::PriceTooLow {
price: BigDecimal::from(0),
threshold: price_threshold,
threshold: BigDecimal::from(0),
};
assert_eq!(actual.error_data, Some(expected));

Expand Down

0 comments on commit ffa733e

Please sign in to comment.