-
Notifications
You must be signed in to change notification settings - Fork 332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improved tests for 'hermes config auto' #3287
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor nits, but otherwise looks good. Thanks @ljoss17!
use ibc_chain_registry::querier::{ | ||
GrpcHealthCheckQuerier, HermesConfigData, QueryContext, SimpleHermesRpcQuerier, | ||
}; | ||
use ibc_relayer::config::{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm thinking we don't want to have import statements nest more than one level deep; it makes it harder search and parse what's being imported. Could we split these out into multiple use
statements?
@@ -245,16 +285,26 @@ pub async fn get_configs( | |||
get_data_from_handles::<ChainConfig>(config_handles, "config_handle_join").await | |||
} | |||
|
|||
/// Concurrent RPC and GRPC queries are likely to fail. | |||
/// Since the the RPC and GRPC endpoints are queried to confirm they are healthy, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// Since the the RPC and GRPC endpoints are queried to confirm they are healthy, | |
/// Since the RPC and GRPC endpoints are queried to confirm they are healthy, |
* Improved tests in 'chain_registry' * Fix typo * Improve 'query_healthy_retry' method * Applied PR suggestions
Closes: #3282
Description
This PR has two main improvements:
query_healthy
function a fixed number of times to avoid errors due to having too many concurrent queries.Some additional comments have been added to clarify sensible parts of the code.
PR author checklist:
Added changelog entry, usingunclog
.docs/
).Reviewer checklist:
Files changed
in the GitHub PR explorer.