From ace2b4dbf5e1cb1f25e3f0e9d74560b0d54080e2 Mon Sep 17 00:00:00 2001 From: cryptozoidberg Date: Sat, 29 Mar 2025 23:39:36 +0400 Subject: [PATCH] tests for rpc transfer ownership done --- tests/core_tests/wallet_rpc_tests.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/core_tests/wallet_rpc_tests.cpp b/tests/core_tests/wallet_rpc_tests.cpp index 1f0ee6c8..88805e22 100644 --- a/tests/core_tests/wallet_rpc_tests.cpp +++ b/tests/core_tests/wallet_rpc_tests.cpp @@ -1186,7 +1186,8 @@ bool wallet_rpc_thirdparty_custody::c1(currency::core& c, size_t ev_index, const CHECK_AND_ASSERT_MES(r, false, "failed to call sign_signature_with_keys"); r = mine_next_pow_blocks_in_playtime(miner_wlt->get_account().get_public_address(), c, 3); - + + bob_wlt->refresh(); r = invoke_text_json_for_rpc(bob_wlt_rpc, "getbalance", balance_req, balance_resp); CHECK_AND_ASSERT_MES(r, false, "RPC send_ext_signed_asset_tx failed: "); @@ -1196,7 +1197,7 @@ bool wallet_rpc_thirdparty_custody::c1(currency::core& c, size_t ev_index, const if (bal.asset_info.asset_id == resp.new_asset_id) { found_asset = true; - CHECK_AND_ASSERT_MES(bal.total == COINS_TO_TRANSFER, false, "Amount is unexpected"); + CHECK_AND_ASSERT_MES(bal.total == 2 * COINS_TO_TRANSFER, false, "Amount is unexpected"); } } CHECK_AND_ASSERT_MES(found_asset, false, "Asset not found ");