Skip to content

Commit

Permalink
fix 2 more failing tests after rebase with dev
Browse files Browse the repository at this point in the history
  • Loading branch information
mariocynicys committed Mar 14, 2024
1 parent 3e47bd3 commit d6f127a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mm2src/coins/utxo/utxo_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1044,7 +1044,7 @@ fn test_electrum_rpc_client_error() {

// use the static string instead because the actual error message cannot be obtain
// by serde_json serialization
let expected = r#"JsonRpcError { client_info: "coin: RICK", request: JsonRpcRequest { jsonrpc: "2.0", id: "1", method: "blockchain.transaction.get", params: [String("0000000000000000000000000000000000000000000000000000000000000000"), Bool(true)] }, error: Response(electrum1.cipig.net:10060, Object({"code": Number(2), "message": String("daemon error: DaemonError({'code': -5, 'message': 'No such mempool or blockchain transaction. Use gettransaction for wallet transactions.'})")})) }"#;
let expected = r#"JsonRpcError { client_info: "coin: DOC", request: JsonRpcRequest { jsonrpc: "2.0", id: "1", method: "blockchain.transaction.get", params: [String("0000000000000000000000000000000000000000000000000000000000000000"), Bool(true)] }, error: Response(electrum1.cipig.net:10060, Object({"code": Number(2), "message": String("daemon error: DaemonError({'code': -5, 'message': 'No such mempool or blockchain transaction. Use gettransaction for wallet transactions.'})")})) }"#;
let actual = format!("{}", err);

assert!(actual.contains(expected));
Expand Down Expand Up @@ -4284,7 +4284,7 @@ fn test_sign_verify_message_segwit() {
);

let is_valid = coin
.verify_message(&signature, message, "rck1qqk4t2dppvmu9jja0z7nan0h464n5gve8h7nhay")
.verify_message(&signature, message, "doc1qqk4t2dppvmu9jja0z7nan0h464n5gve8z592yd")
.unwrap();
assert!(is_valid);

Expand Down

0 comments on commit d6f127a

Please sign in to comment.