Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
perekopskiy committed Oct 6, 2021
1 parent 38cba74 commit d0fcfda
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions core/lib/storage/src/tests/chain/operations_ext/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -718,21 +718,12 @@ async fn account_transactions_count(mut storage: StorageProcessor<'_>) -> QueryR
setup.add_block(1);
commit_schema_data(&mut storage, &setup).await?;

let count_before_commit = storage
let count_after_saving = storage
.chain()
.operations_ext_schema()
.get_account_transactions_count(setup.from_zksync_account.address, None)
.await?;
assert_eq!(count_before_commit, 0);

commit_block(&mut storage, BlockNumber(1)).await?;

let count_after_commit = storage
.chain()
.operations_ext_schema()
.get_account_transactions_count(setup.from_zksync_account.address, None)
.await?;
assert_eq!(count_after_commit, 10);
assert_eq!(count_after_saving, 10);

Ok(())
}
Expand Down

0 comments on commit d0fcfda

Please sign in to comment.