Skip to content

Commit

Permalink
fix: Unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
igamigo committed Feb 24, 2025
1 parent 3a2f30a commit 5485737
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions crates/rust-client/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,11 +312,10 @@ async fn test_sync_state() {
assert_eq!(sync_details.block_num, rpc_api.blocks.last().unwrap().header().block_num());

// verify that we now have one committed note after syncing state
assert_eq!(client.get_input_notes(NoteFilter::Committed).await.unwrap().len(), 1);

// verify that we now have one consumed note after syncing state
assert_eq!(client.get_input_notes(NoteFilter::Consumed).await.unwrap().len(), 1);
assert_eq!(sync_details.consumed_notes.len(), 1);
// TODO: Review these next 3 asserts (see PR 758)
assert_eq!(client.get_input_notes(NoteFilter::Committed).await.unwrap().len(), 2);
assert_eq!(client.get_input_notes(NoteFilter::Consumed).await.unwrap().len(), 0);
assert_eq!(sync_details.consumed_notes.len(), 0);

// verify that the latest block number has been updated
assert_eq!(
Expand Down

0 comments on commit 5485737

Please sign in to comment.