Skip to content

Commit

Permalink
fixup! Merge branch 'fraccaman/multisignature-draft-rebase-0.20.0' (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Fraccaman committed Jul 27, 2023
1 parent c1f8380 commit 9828345
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions tests/src/e2e/ledger_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,8 @@ fn ledger_txs_and_queries() -> Result<()> {
],
// expect a decimal
vec![r"nam: \d+(\.\d+)?"],
// check also as validator node
true,
),
// Unspecified token expect all tokens from wallet derived from genesis
(
Expand All @@ -679,6 +681,8 @@ fn ledger_txs_and_queries() -> Result<()> {
r"kartoffel: \d+(\.\d+)?",
r"schnitzel: \d+(\.\d+)?",
],
// check also as validator node
true,
),
(
vec![
Expand All @@ -688,17 +692,25 @@ fn ledger_txs_and_queries() -> Result<()> {
"--node",
&validator_one_rpc,
],
"Threshold: 2",
vec!["Threshold: 2"],
// check also as validator node
false,
),
];
for (query_args, expected) in &query_args_and_expected_response {
for (query_args, expected, check_as_validator) in
&query_args_and_expected_response
{
// Run as a non-validator
let mut client = run!(test, Bin::Client, query_args, Some(40))?;
for pattern in expected {
client.exp_regex(pattern)?;
}
client.assert_success();

if !check_as_validator {
continue;
}

// Run as a validator
let mut client = run_as!(
test,
Expand Down

0 comments on commit 9828345

Please sign in to comment.