Skip to content

Commit

Permalink
test/e2e: fix expected client block output
Browse files Browse the repository at this point in the history
  • Loading branch information
tzemanovic committed Apr 26, 2024
1 parent eafccfd commit 98b2082
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/tests/src/e2e/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -343,11 +343,12 @@ pub fn get_height(test: &Test, ledger_address: &str) -> Result<u64> {
&["block", "--node", ledger_address],
Some(10)
)?;
let (unread, matched) = find.exp_regex("Last committed block ID: .*")?;
let (unread, matched) =
find.exp_regex("Last committed block height: .*")?;
// Expected `matched` string is e.g.:
//
// ```
// Last committed block F10B5E77F972F68CA051D289474B6E75574B446BF713A7B7B71D7ECFC61A3B21, height: 4, time: 2022-10-20T10:52:28.828745Z
// Last committed block height: 4, time: 2022-10-20T10:52:28.828745Z
// ```
let height_str = strip_trailing_newline(&matched)
.trim()
Expand Down

0 comments on commit 98b2082

Please sign in to comment.