Skip to content

Commit dbfb9ec

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

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

tests/p2p/test_sync_v2.py

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

18+
seed_config = 2
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

+4
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,15 @@ class SyncV1RandomSimulatorTestCase(unittest.SyncV1Params, BaseRandomSimulatorTe
156156
class SyncV2RandomSimulatorTestCase(unittest.SyncV2Params, BaseRandomSimulatorTestCase):
157157
__test__ = True
158158

159+
seed_config = 3
160+
159161

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

166+
seed_config = 4
167+
164168
def test_compare_mempool_implementations(self):
165169
manager1 = self.create_peer()
166170
manager2 = self.create_peer()

0 commit comments

Comments
 (0)