Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(tests): remove undeeded broken tests #668

Merged
merged 1 commit into from
Jun 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions tests/tx/test_tx.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
from tests import unittest
from tests.utils import (
add_blocks_unlock_reward,
add_new_block,
add_new_blocks,
add_new_transactions,
create_script_with_sigops,
Expand Down Expand Up @@ -98,22 +97,6 @@ def test_validation(self):
self.assertTrue(block_from_chain.has_basic_block_parent())
self.assertEqual(block_from_chain.get_next_block_best_chain(), None)

def test_checkpoint_validation(self):
from hathor.transaction.transaction_metadata import ValidationState

# manually validate with sync_checkpoints=True
block1 = add_new_block(self.manager, propagate=False)
block1.validate_full(sync_checkpoints=True)
self.assertTrue(block1.get_metadata().validation.is_checkpoint())
self.manager.propagate_tx(block1)
del block1

# use on_new_tx with sync_checkpoints=True
block2 = self.manager.generate_mining_block()
block2.resolve()
self.assertTrue(self.manager.on_new_tx(block2, sync_checkpoints=True, partial=True, fails_silently=False))
self.assertEqual(block2.get_metadata().validation, ValidationState.CHECKPOINT_FULL)

def test_script(self):
genesis_block = self.genesis_blocks[0]

Expand Down