Skip to content

Commit 34196d9

Browse files
committed
[ETCM-49] Not proud at all. But works.
1 parent 7851d30 commit 34196d9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/scala/io/iohk/ethereum/blockchain/sync/regular/RegularSyncSpec.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ class RegularSyncSpec extends RegularSyncFixtures with WordSpecLike with BeforeA
170170
implicit val ec: ExecutionContext = system.dispatcher
171171
override lazy val blockchain: BlockchainImpl = stub[BlockchainImpl]
172172
(blockchain.getBestBlockNumber _).when().onCall(() => ledger.bestBlock.number)
173+
// Just to bypass metrics needs
174+
(blockchain.getBlockByHash _).when(*).returns(None)
173175
override lazy val ledger: TestLedgerImpl = new FakeLedgerImpl()
174176
override lazy val syncConfig = defaultSyncConfig.copy(
175177
blockHeadersPerRequest = 5,

0 commit comments

Comments
 (0)