Skip to content

test(sync-v2): Fix seed in some sync-v2 tests while it's under testing #817

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

Merged
merged 1 commit into from
Oct 18, 2023
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions tests/p2p/test_sync_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
class BaseRandomSimulatorTestCase(SimulatorTestCase):
__test__ = True

seed_config = 2

def _get_partial_blocks(self, tx_storage):
with tx_storage.allow_partially_validated_context():
partial_blocks = set()
Expand Down
4 changes: 4 additions & 0 deletions tests/simulation/test_simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,15 @@ class SyncV1RandomSimulatorTestCase(unittest.SyncV1Params, BaseRandomSimulatorTe
class SyncV2RandomSimulatorTestCase(unittest.SyncV2Params, BaseRandomSimulatorTestCase):
__test__ = True

seed_config = 3


# sync-bridge should behave like sync-v2
class SyncBridgeRandomSimulatorTestCase(unittest.SyncBridgeParams, SyncV2RandomSimulatorTestCase):
__test__ = True

seed_config = 4

def test_compare_mempool_implementations(self):
manager1 = self.create_peer()
manager2 = self.create_peer()
Expand Down