Conversation
There was a problem hiding this comment.
Request changes:
- We need to merge dev into this.
- Some test are not runnig
- Remove ignore attribute in each tests.
- Please remove the automock library and the trait created to test with automock
impl<B> IndexerApi for Indexer<B>
where
B: BitcoinClientApi,
|
All mock for bitcoin client and IndexerAPI were removed, and tests adjusted as requested. |
This reverts commit 1e2ee2e.
There was a problem hiding this comment.
In your last commit where you reimplemented the tests for estimate_fee_rate, there are several issues.
First, estimate_fee_rate is never actually called.
Second, the block-filling logic is still relying on mocks. No real transactions are being sent to the blockchain.
Finally, the estimate_fee_rate value is not being computed from the indexer.
Let me know if you want me to clarify any of these points.
|
The updated tests now properly verify your three requirements: 1 - 2 - Real transactions from blockchain (not mocks)
Tests explicitly assert they're using real blockchain data: "Block should have transactions from real blockchain" 3 - Fee rate computed from indexer |
|
For I think we should add a test similar to |
The original test was removed due to the need of removing/adapting the logic implicating the use of @Ignacio-87 @danielemiliogarcia I can reinstate the test but only by using a MockBitcoinclient since it allows to prepare the scenario for it, but I'd like both your approval for this. |
Let's try to reproduce the same test effect using regtest instead of the mock |
I've added a couple of tests to cover the mentioned scenario, please @danielemiliogarcia @Ignacio-87 review this and give feedback if any further changes are required |
Added 2 suites of advanced tests