Skip to content

Commit

Permalink
test gets finalized blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseAbram committed Nov 21, 2024
1 parent f48c59d commit 732ca9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/client/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,8 @@ async fn test_get_oracle_headings() {

let mut current_block = 0;
while current_block < 2 {
current_block = rpc.chain_get_header(None).await.unwrap().unwrap().number;
let finalized_head = rpc.chain_get_finalized_head().await.unwrap();
current_block = rpc.chain_get_header(Some(finalized_head)).await.unwrap().unwrap().number;
}

let headings = get_oracle_headings(&api, &rpc).await.unwrap();
Expand Down

0 comments on commit 732ca9d

Please sign in to comment.