1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/app/scripts/controllers/network/provider-api-tests
Elliot Winkler 05fb01802d
Re-enable tests for subscription-based RPC methods (#18994)
NetworkController doesn't handle `eth_subscribe` or `eth_unsubscribe`
specially, but as it's supported by Infura, we want to make sure we
exercise these RPC methods in the network client tests, even if it is
just to ensure that they get passed through to the network.

We had tests for these RPC methods, but they were commented out in
c095b1accd when the network client code
was extracted to a separate file. At the time we were considering adding
subscription- and filter-based middleware to NetworkController, and so
we commented out the tests for `eth_subscribe` and `eth_unsubscribe`
temporarily until we could rewrite them in a way that would exercise the
new middleware. We reverted that change in
bd23a49013, which meant that we could
restore the existing tests, but it appears that this task was not caught
during review. This commit takes care of restoring them.

Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
2023-05-10 09:34:10 -02:30
..
block-hash-in-response.ts Convert NetworkController net client tests to TS (#18490) 2023-04-14 10:21:29 -06:00
block-param.ts Convert NetworkController net client tests to TS (#18490) 2023-04-14 10:21:29 -06:00
helpers.ts Convert NetworkController net client tests to TS (#18490) 2023-04-14 10:21:29 -06:00
no-block-param.ts Convert NetworkController net client tests to TS (#18490) 2023-04-14 10:21:29 -06:00
not-handled-by-middleware.ts Convert NetworkController net client tests to TS (#18490) 2023-04-14 10:21:29 -06:00
shared-tests.ts Re-enable tests for subscription-based RPC methods (#18994) 2023-05-10 09:34:10 -02:30