Skip to content

Commit

Permalink
Improve spend bundle checks in test_dao_proposal_partial_vote.
Browse files Browse the repository at this point in the history
  • Loading branch information
AmineKhaldi committed Apr 24, 2024
1 parent 1821d6b commit 04a6aa8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chia/_tests/wallet/dao_wallet/test_dao_wallets.py
Expand Up @@ -957,7 +957,7 @@ async def test_dao_proposal_partial_vote(
await dao_wallet_0.wallet_state_manager.add_pending_transactions([funding_tx])
assert isinstance(funding_tx, TransactionRecord)
funding_sb = funding_tx.spend_bundle
assert isinstance(funding_sb, SpendBundle)
assert funding_sb is not None
await time_out_assert_not_none(5, full_node_api.full_node.mempool_manager.get_spendbundle, funding_sb.name())
await full_node_api.process_transaction_records(records=[funding_tx])
await full_node_api.farm_new_transaction_block(FarmNewBlockProtocol(puzzle_hash_0))
Expand Down Expand Up @@ -1010,7 +1010,7 @@ async def test_dao_proposal_partial_vote(
await dao_wallet_0.wallet_state_manager.add_pending_transactions([proposal_tx])
assert isinstance(proposal_tx, TransactionRecord)
proposal_sb = proposal_tx.spend_bundle
assert isinstance(proposal_sb, SpendBundle)
assert proposal_sb is not None
await time_out_assert_not_none(5, full_node_api.full_node.mempool_manager.get_spendbundle, proposal_sb.name())
await full_node_api.process_spend_bundles(bundles=[proposal_sb])
await full_node_api.farm_new_transaction_block(FarmNewBlockProtocol(puzzle_hash_0))
Expand Down

0 comments on commit 04a6aa8

Please sign in to comment.