Skip to content

Commit

Permalink
tests: migrate flaky event simulation tests to new format
Browse files Browse the repository at this point in the history
  • Loading branch information
glevco committed Jun 5, 2023
1 parent 6aef466 commit 70b4556
Show file tree
Hide file tree
Showing 4 changed files with 305 additions and 509 deletions.
75 changes: 0 additions & 75 deletions hathor/simulator/miner/dummy_miner.py

This file was deleted.

4 changes: 0 additions & 4 deletions hathor/simulator/simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
from hathor.manager import HathorManager
from hathor.p2p.peer_id import PeerId
from hathor.simulator.clock import HeapClock
from hathor.simulator.miner.dummy_miner import DummyMiner
from hathor.simulator.miner.geometric_miner import GeometricMiner
from hathor.simulator.tx_generator import RandomTransactionGenerator
from hathor.transaction.genesis import _get_genesis_transactions_unsafe
Expand Down Expand Up @@ -228,9 +227,6 @@ def create_tx_generator(self, peer: HathorManager, *args: Any, **kwargs: Any) ->
def create_miner(self, peer: HathorManager, *args: Any, **kwargs: Any) -> GeometricMiner:
return GeometricMiner(peer, self.rng, *args, **kwargs)

def create_dummy_miner(self, peer: HathorManager, *args: Any, **kwargs: Any) -> DummyMiner:
return DummyMiner(peer, self.rng, *args, **kwargs)

def run_to_completion(self):
""" This will advance the test's clock until all calls scheduled are done.
"""
Expand Down
Loading

0 comments on commit 70b4556

Please sign in to comment.