Skip to content

Commit

Permalink
Fixup some hidden test errors (#10442)
Browse files Browse the repository at this point in the history
  • Loading branch information
altendky authored Mar 8, 2022
1 parent 65deb79 commit 6ff6fbe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions tests/core/full_node/test_full_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -1085,7 +1085,7 @@ async def test_respond_transaction_fail(self, wallet_nodes):
receiver_puzzlehash = wallet_receiver.get_new_puzzlehash()

blocks_new = bt.get_consecutive_blocks(
2,
3,
block_list_input=blocks,
guarantee_transaction_block=True,
farmer_reward_puzzle_hash=cb_ph,
Expand All @@ -1095,10 +1095,11 @@ async def test_respond_transaction_fail(self, wallet_nodes):
while incoming_queue.qsize() > 0:
await incoming_queue.get()

await full_node_1.full_node.respond_block(fnp.RespondBlock(blocks_new[-3]), peer)
await full_node_1.full_node.respond_block(fnp.RespondBlock(blocks_new[-2]), peer)
await full_node_1.full_node.respond_block(fnp.RespondBlock(blocks_new[-1]), peer)

await time_out_assert(10, time_out_messages(incoming_queue, "new_peak", 2))
await time_out_assert(10, time_out_messages(incoming_queue, "new_peak", 3))
# Invalid transaction does not propagate
spend_bundle = wallet_a.generate_signed_transaction(
100000000000000,
Expand All @@ -1120,7 +1121,7 @@ async def test_request_block(self, wallet_nodes):
blocks = await full_node_1.get_all_full_blocks()

blocks = bt.get_consecutive_blocks(
2,
3,
block_list_input=blocks,
guarantee_transaction_block=True,
farmer_reward_puzzle_hash=wallet_a.get_new_puzzlehash(),
Expand Down
2 changes: 1 addition & 1 deletion tests/core/full_node/test_mempool.py
Original file line number Diff line number Diff line change
Expand Up @@ -2365,7 +2365,7 @@ async def test_invalid_coin_spend_coin(self, two_nodes):
for block in blocks:
await full_node_1.full_node.respond_block(full_node_protocol.RespondBlock(block))

await time_out_assert(60, node_height_at_least, True, full_node_2, blocks[-1].height)
await time_out_assert(60, node_height_at_least, True, full_node_1, blocks[-1].height)

spend_bundle = generate_test_spend_bundle(list(blocks[-1].get_included_reward_coins())[0])
coin_spend_0 = recursive_replace(spend_bundle.coin_spends[0], "coin.puzzle_hash", bytes32([1] * 32))
Expand Down

0 comments on commit 6ff6fbe

Please sign in to comment.