diff --git a/mm2src/coins/utxo/utxo_tests.rs b/mm2src/coins/utxo/utxo_tests.rs index 8f2bf4158e..0e1d56dddc 100644 --- a/mm2src/coins/utxo/utxo_tests.rs +++ b/mm2src/coins/utxo/utxo_tests.rs @@ -1372,6 +1372,8 @@ fn test_cashaddresses_in_tx_details_by_hash() { let req = json!({ "method": "electrum", "servers": [ + {"url":"bch0.kister.net:51002","protocol":"SSL"}, + {"url":"tbch.loping.net:60002","protocol":"SSL"}, {"url":"electroncash.de:50003"}, {"url":"tbch.loping.net:60001"}, {"url":"blackie.c3-soft.com:60001"}, @@ -1411,6 +1413,8 @@ fn test_address_from_str_with_cashaddress_activated() { let req = json!({ "method": "electrum", "servers": [ + {"url":"bch0.kister.net:51002","protocol":"SSL"}, + {"url":"tbch.loping.net:60002","protocol":"SSL"}, {"url":"electroncash.de:50003"}, {"url":"tbch.loping.net:60001"}, {"url":"blackie.c3-soft.com:60001"}, @@ -1449,6 +1453,8 @@ fn test_address_from_str_with_legacy_address_activated() { let req = json!({ "method": "electrum", "servers": [ + {"url":"bch0.kister.net:51002","protocol":"SSL"}, + {"url":"tbch.loping.net:60002","protocol":"SSL"}, {"url":"electroncash.de:50003"}, {"url":"tbch.loping.net:60001"}, {"url":"blackie.c3-soft.com:60001"}, diff --git a/mm2src/mm2_main/tests/docker_tests/docker_tests_inner.rs b/mm2src/mm2_main/tests/docker_tests/docker_tests_inner.rs index d05733e1b9..1241dac2be 100644 --- a/mm2src/mm2_main/tests/docker_tests/docker_tests_inner.rs +++ b/mm2src/mm2_main/tests/docker_tests/docker_tests_inner.rs @@ -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 = 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));