Skip to content

Commit 121a835

Browse files
committed
test(sync-v2): Fix seed in some sync-v2 tests while it's under testing
1 parent a9b2a4c commit 121a835

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

tests/p2p/test_sync_v2.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
class BaseRandomSimulatorTestCase(SimulatorTestCase):
1616
__test__ = True
1717

18+
seed_config = 1
19+
1820
def _get_partial_blocks(self, tx_storage):
1921
with tx_storage.allow_partially_validated_context():
2022
partial_blocks = set()

tests/simulation/test_simulator.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,15 @@ class SyncV1RandomSimulatorTestCase(unittest.SyncV1Params, BaseRandomSimulatorTe
154154
class SyncV2RandomSimulatorTestCase(unittest.SyncV2Params, BaseRandomSimulatorTestCase):
155155
__test__ = True
156156

157+
seed_config = 1
158+
157159

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

164+
seed_config = 1
165+
162166
def test_compare_mempool_implementations(self):
163167
manager1 = self.create_peer()
164168
manager2 = self.create_peer()

0 commit comments

Comments
 (0)