Closed tayfunelmas closed 3 months ago
Attention: Patch coverage is 93.22034%
with 4 lines
in your changes missing coverage. Please review.
Project coverage is 71.82%. Comparing base (
f29029a
) to head (7621d81
).
Files | Patch % | Lines |
---|---|---|
integration-tests/src/test_loop/env.rs | 0.00% | 3 Missing :warning: |
chain/client/src/view_client_actor.rs | 97.50% | 0 Missing and 1 partial :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
We introduce
ViewClientActorInner
to testloop environment. For this we add a field toTestData
to contain the view client actor and initialize it in theTestLoopBuilder
. The new view client field allows to send messages viaViewClientSenderForRpc
. These messages are used when answering to JSON-RPC methods via the view client.The goal is to be able to issue RPC requests to the view client and write tests to exercise RPC methods that are executed through the view client. Such tests are left for upcoming PRs. Instead, to demonstrate that the view client works, we change
multinode_stateless_validators.rs
to callGetValidatorInfo
on view client instead of read the validator info directly from the internal epoch manager.This task is part of #11827, where we want to write testloop tests that run the chain and then call certain RPC methods (here instead of HTTP interface, the methods will be invoked directly through the ViewClient since we want to exercise the implementation of the RPC methods, instead of the HTTP/RPC layer).