Skip to content

Commit

Permalink
test/e2e/slashing: fix flakiness
Browse files Browse the repository at this point in the history
  • Loading branch information
tzemanovic committed Oct 16, 2023
1 parent 913e7dc commit bd8b57f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/src/e2e/ledger_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3313,6 +3313,8 @@ fn double_signing_gets_slashed() -> Result<()> {
.exp_regex(r"Slashing [a-z0-9]+ for Duplicate vote in epoch [0-9]+")
.unwrap();
println!("\n{res}\n");
// Wait to commit a block
validator_1.exp_regex(r"Committed block hash.*, height: [0-9]+")?;
let bg_validator_1 = validator_1.background();

let exp_processing_epoch = Epoch::from_str(res.split(' ').last().unwrap())
Expand All @@ -3322,9 +3324,6 @@ fn double_signing_gets_slashed() -> Result<()> {
+ 1u64;

// Query slashes
// let tx_args = ["slashes", "--node", &validator_one_rpc];
// let client = run!(test, Bin::Client, tx_args, Some(40))?;

let mut client = run!(
test,
Bin::Client,
Expand Down

0 comments on commit bd8b57f

Please sign in to comment.