-
Notifications
You must be signed in to change notification settings - Fork 4
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
Use TEST_PRESET
env to run cosmos tests with different chains
#477
Use TEST_PRESET
env to run cosmos tests with different chains
#477
Conversation
@@ -31,7 +36,7 @@ fn test_celestia_bootstrap() -> Result<(), Error> { | |||
cosmos_builder: builder.clone(), | |||
chain_store_dir: store_dir.join("chains"), | |||
bridge_store_dir: store_dir.join("bridges"), | |||
dynamic_gas: Some(DynamicGasConfig::default()), |
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.
For CelestiaBootstrap, since this is chain-specific, we can probably make it either always have dynamic gas or not.
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.
Won't there be an issue with the CanUseLegacyCosmosSdkChainBootstrapper
https://github.com/informalsystems/hermes-sdk/blob/main/crates/celestia/celestia-integration-tests/src/contexts/bootstrap.rs#L72?
|
||
// TODO: Eventually use Config to define dynamic gas config | ||
tx_config.gas_config.dynamic_gas_config = self.dynamic_gas.clone(); |
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.
Actually, we can modify build_chain_with_config
to accept an additional parameter dynamic_gas_config
.
The chain is being built here, and you can use Bootstrap: HasDynamicGasConfig
to get the 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.
Done in d534f61
TEST_PRESET
env to run cosmos tests with different chains
Closes: #XXX
Description
Status
Waiting on informalsystems/cosmos.nix#280 and #476This PR uses the
TEST_PRESET
env variable to run the tests between:Following #482 it is not necessary to have separate cosmos and legacy cosmos tests.
PR author checklist:
unclog
.docs/
).Reviewer checklist:
Files changed
in the GitHub PR explorer.