Skip to content

Commit

Permalink
Merge branch 'yuji/ibc-e2e-config' (#3455)
Browse files Browse the repository at this point in the history
* yuji/ibc-e2e-config:
  longer interval
  add changelog
  clear on start
  change IBC e2e test config
  • Loading branch information
brentstone committed Jul 2, 2024
2 parents 9cbc4ee + 900e162 commit ee07866
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .changelog/unreleased/testing/3455-ibc-e2e-config.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Change the IBC E2E testing config
([\#3455](https://github.com/anoma/namada/issues/3455))
12 changes: 6 additions & 6 deletions .github/workflows/scripts/e2e.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"e2e::eth_bridge_tests::everything": 4,
"e2e::ibc_tests::run_ledger_ibc": 155,
"e2e::ibc_tests::run_ledger_ibc_with_hermes": 130,
"e2e::ibc_tests::pgf_over_ibc_with_hermes": 240,
"e2e::ibc_tests::proposal_ibc_token_inflation": 600,
"e2e::ibc_tests::ibc_rate_limit": 500,
"e2e::ibc_tests::ibc_namada_gaia": 450,
"e2e::ibc_tests::run_ledger_ibc": 110,
"e2e::ibc_tests::run_ledger_ibc_with_hermes": 230,
"e2e::ibc_tests::pgf_over_ibc_with_hermes": 810,
"e2e::ibc_tests::proposal_ibc_token_inflation": 1100,
"e2e::ibc_tests::ibc_rate_limit": 430,
"e2e::ibc_tests::ibc_namada_gaia": 180,
"e2e::eth_bridge_tests::test_add_to_bridge_pool": 10,
"e2e::ledger_tests::double_signing_gets_slashed": 12,
"e2e::ledger_tests::ledger_many_txs_in_a_block": 55,
Expand Down
8 changes: 5 additions & 3 deletions crates/tests/src/e2e/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -537,8 +537,8 @@ pub fn make_hermes_config(test_a: &Test, test_b: &Test) -> Result<()> {

let mut packets = toml::map::Map::new();
packets.insert("enabled".to_owned(), Value::Boolean(true));
packets.insert("clear_interval".to_owned(), Value::Integer(10));
packets.insert("clear_on_start".to_owned(), Value::Boolean(false));
packets.insert("clear_interval".to_owned(), Value::Integer(30));
packets.insert("clear_on_start".to_owned(), Value::Boolean(true));
packets.insert("tx_confirmation".to_owned(), Value::Boolean(true));
mode.insert("packets".to_owned(), Value::Table(packets));

Expand Down Expand Up @@ -614,12 +614,14 @@ fn make_hermes_chain_config(test: &Test) -> Value {
);
chain.insert("store_prefix".to_owned(), Value::String("ibc".to_owned()));
let mut table = toml::map::Map::new();
table.insert("price".to_owned(), Value::Float(0.001));
table.insert("price".to_owned(), Value::Float(0.000001));
std::env::set_var(ENV_VAR_CHAIN_ID, test.net.chain_id.to_string());
let nam_addr = find_address(test, setup::constants::NAM).unwrap();
table.insert("denom".to_owned(), Value::String(nam_addr.to_string()));
chain.insert("gas_price".to_owned(), Value::Table(table));

chain.insert("max_block_time".to_owned(), Value::String("60s".to_owned()));

Value::Table(chain)
}

Expand Down
2 changes: 1 addition & 1 deletion crates/tests/src/e2e/ibc_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,7 @@ fn create_channel_with_hermes(
"--yes",
];

let mut hermes = run_hermes_cmd(test_a, args, Some(120))?;
let mut hermes = run_hermes_cmd(test_a, args, Some(240))?;
let (channel_id_a, channel_id_b) =
get_channel_ids_from_hermes_output(&mut hermes)?;
hermes.assert_success();
Expand Down

0 comments on commit ee07866

Please sign in to comment.