* Use `MockService` in inbound test Refactor the `mempool_requsets_for_transactions` test so that it uses a `MockService` instead of the `mock_peer_set` function. * Use `MockService` in the basic mempool test Refactor the `mempool_service_basic` test so that it uses a `MockService` instead of the `mock_peer_set` helper function. * Remove the `mock_peer_set` helper function It is not used anymore, since the usages were replaced with `MockService`s. * add tests for mempool inbound requests * Use MockService for transaction verifier * Refactor creation of mock `peer_set` Use the same style as the mock transaction verifier. * Derive `Eq` for `zebra_network::Request` Make it easy to use the `MockService::expect_request` method. * Return mocked peer set service from `setup` Allow it to be used to respond to requests. * Add bindings for the transaction used for testing Allow them to be moved into futures later. * Respond to transaction download request Make sure that the test transaction appears to the mempool as if it had been downloaded by the peer set service. * Assert that no unexpected requests were received Check that the mempool doesn't send unexpected requests to the peer set service. * add tests for mempool inbound requests * Use MockService for transaction verifier * add missing `expect_no_requests` to `mempool_advertise_transaction_ids` test Co-authored-by: Janito Vaqueiro Ferreira Filho <janito.vff@gmail.com> Co-authored-by: Conrado Gouvea <conrado@zfnd.org> |
||
---|---|---|
.. | ||
proptest-regressions | ||
src | ||
Cargo.toml |