Skip to content

Commit

Permalink
tests: improve e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Gianmarco Fraccaroli committed May 8, 2023
1 parent 1526dc8 commit 282e754
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/scripts/e2e.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"e2e::ledger_tests::pos_bonds": 19,
"e2e::ledger_tests::pos_init_validator": 15,
"e2e::ledger_tests::proposal_offline": 15,
"e2e::ledger_tests::pgf_governance_proposal": 35,
"e2e::ledger_tests::pgf_stewards_governance_proposal": 35,
"e2e::ledger_tests::eth_governance_proposal": 35,
"e2e::ledger_tests::proposal_submission": 35,
"e2e::ledger_tests::run_ledger": 5,
Expand Down
12 changes: 10 additions & 2 deletions tests/src/e2e/ledger_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2891,6 +2891,15 @@ fn proposal_submission() -> Result<()> {
client.exp_regex(".*Min. proposal grace epochs: 9.*")?;
client.assert_success();

// 14. Query parameters
let query_protocol_parameters =
vec!["query-protocol-parameters", "--node", &validator_one_rpc];

let mut client =
run!(test, Bin::Client, query_protocol_parameters, Some(30))?;
client.exp_regex(".*Min. proposal grace epochs: 9.*")?;
client.assert_success();

Ok(())
}

Expand Down Expand Up @@ -3123,7 +3132,6 @@ fn eth_governance_proposal() -> Result<()> {
// Test submission and vote of a PGF proposal
#[test]
fn pgf_stewards_governance_proposal() -> Result<()> {
// FIXME:
let test = setup::network(
|genesis| {
let parameters = ParametersConfig {
Expand Down Expand Up @@ -3186,7 +3194,7 @@ fn pgf_stewards_governance_proposal() -> Result<()> {
};

let valid_proposal_json_path =
prepare_proposal_data(&test, albert, vec![pgf_stewards]);
prepare_proposal_data(&test, albert.clone(), vec![pgf_stewards]);
let validator_one_rpc = get_actor_rpc(&test, &Who::Validator(0));

let submit_proposal_args = vec![
Expand Down

0 comments on commit 282e754

Please sign in to comment.