Skip to content

Commit

Permalink
Increases pos test timeouts for speculos
Browse files Browse the repository at this point in the history
  • Loading branch information
grarco committed Oct 9, 2024
1 parent 5c08510 commit b0df0e7
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions crates/tests/src/e2e/ledger_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ fn pos_bonds() -> Result<()> {
&validator_0_rpc,
];
let mut client =
run_as!(test, Who::Validator(0), Bin::Client, tx_args, Some(40))?;
run_as!(test, Who::Validator(0), Bin::Client, tx_args, Some(80))?;
client.exp_string(TX_APPLIED_SUCCESS)?;
client.assert_success();

Expand All @@ -616,7 +616,7 @@ fn pos_bonds() -> Result<()> {
"--node",
&validator_0_rpc,
]);
let mut client = run!(test, Bin::Client, tx_args, Some(40))?;
let mut client = run!(test, Bin::Client, tx_args, Some(80))?;
client.exp_string(TX_APPLIED_SUCCESS)?;
client.assert_success();

Expand All @@ -636,7 +636,7 @@ fn pos_bonds() -> Result<()> {
"--node",
&validator_0_rpc,
]);
let mut client = run!(test, Bin::Client, tx_args, Some(40))?;
let mut client = run!(test, Bin::Client, tx_args, Some(80))?;
client.exp_string(TX_APPLIED_SUCCESS)?;
client.assert_success();

Expand All @@ -653,7 +653,7 @@ fn pos_bonds() -> Result<()> {
&validator_0_rpc,
];
let mut client =
run_as!(test, Who::Validator(0), Bin::Client, tx_args, Some(40))?;
run_as!(test, Who::Validator(0), Bin::Client, tx_args, Some(80))?;
client
.exp_string("Amount 5100.000000 withdrawable starting from epoch ")?;
client.assert_success();
Expand All @@ -672,7 +672,7 @@ fn pos_bonds() -> Result<()> {
"--node",
&validator_0_rpc,
]);
let mut client = run!(test, Bin::Client, tx_args, Some(40))?;
let mut client = run!(test, Bin::Client, tx_args, Some(80))?;
let expected = "Amount 1600.000000 withdrawable starting from epoch ";
let _ = client.exp_regex(&format!("{expected}.*\n"))?;
client.assert_success();
Expand All @@ -691,7 +691,7 @@ fn pos_bonds() -> Result<()> {
"--node",
&validator_0_rpc,
]);
let mut client = run!(test, Bin::Client, tx_args, Some(40))?;
let mut client = run!(test, Bin::Client, tx_args, Some(80))?;
let expected = "Amount 1600.000000 withdrawable starting from epoch ";
let (_unread, matched) = client.exp_regex(&format!("{expected}.*\n"))?;
let epoch_raw = matched.trim().split_once(expected).unwrap().1;
Expand Down Expand Up @@ -739,7 +739,7 @@ fn pos_bonds() -> Result<()> {
&validator_0_rpc,
];
let mut client =
run_as!(test, Who::Validator(0), Bin::Client, tx_args, Some(40))?;
run_as!(test, Who::Validator(0), Bin::Client, tx_args, Some(80))?;
client.exp_string(TX_APPLIED_SUCCESS)?;
client.assert_success();

Expand All @@ -755,7 +755,7 @@ fn pos_bonds() -> Result<()> {
"--node",
&validator_0_rpc,
]);
let mut client = run!(test, Bin::Client, tx_args, Some(40))?;
let mut client = run!(test, Bin::Client, tx_args, Some(80))?;
client.exp_string(TX_APPLIED_SUCCESS)?;
client.assert_success();

Expand All @@ -771,7 +771,7 @@ fn pos_bonds() -> Result<()> {
"--node",
&validator_0_rpc,
]);
let mut client = run!(test, Bin::Client, tx_args, Some(40))?;
let mut client = run!(test, Bin::Client, tx_args, Some(80))?;
client.exp_string(TX_APPLIED_SUCCESS)?;
client.assert_success();

Expand Down

0 comments on commit b0df0e7

Please sign in to comment.