Fix RL test
This commit is contained in:
parent
059d892f14
commit
7f5868a590
|
@ -51,9 +51,7 @@ async def print_balances(wallet_client):
|
||||||
print(
|
print(
|
||||||
f" -Unconfirmed: {balances['unconfirmed_wallet_balance']/units['chia']} TXCH"
|
f" -Unconfirmed: {balances['unconfirmed_wallet_balance']/units['chia']} TXCH"
|
||||||
)
|
)
|
||||||
print(
|
print(f" -Spendable: {balances['spendable_balance']/units['chia']} TXCH")
|
||||||
f" -Spendable: {balances['spendable_balance']/units['chia']} TXCH"
|
|
||||||
)
|
|
||||||
print(f" -Frozen: {balances['frozen_balance']/units['chia']} TXCH")
|
print(f" -Frozen: {balances['frozen_balance']/units['chia']} TXCH")
|
||||||
print(
|
print(
|
||||||
f" -Pending change: {balances['pending_change']/units['chia']} TXCH"
|
f" -Pending change: {balances['pending_change']/units['chia']} TXCH"
|
||||||
|
|
|
@ -113,15 +113,10 @@ class TestCCWallet:
|
||||||
|
|
||||||
await time_out_assert(15, check_balance, 100, api_user, user_wallet_id)
|
await time_out_assert(15, check_balance, 100, api_user, user_wallet_id)
|
||||||
receiving_wallet = wallet_node_2.wallet_state_manager.main_wallet
|
receiving_wallet = wallet_node_2.wallet_state_manager.main_wallet
|
||||||
puzzle_hash = encode_puzzle_hash(await receiving_wallet.get_new_puzzlehash())
|
address = encode_puzzle_hash(await receiving_wallet.get_new_puzzlehash())
|
||||||
assert await receiving_wallet.get_spendable_balance() == 0
|
assert await receiving_wallet.get_spendable_balance() == 0
|
||||||
val = await api_user.send_transaction(
|
val = await api_user.send_transaction(
|
||||||
{
|
{"wallet_id": user_wallet_id, "amount": 3, "fee": 0, "address": address}
|
||||||
"wallet_id": user_wallet_id,
|
|
||||||
"amount": 3,
|
|
||||||
"fee": 0,
|
|
||||||
"puzzle_hash": puzzle_hash,
|
|
||||||
}
|
|
||||||
)
|
)
|
||||||
assert "transaction_id" in val
|
assert "transaction_id" in val
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue