Skip to content

Commit

Permalink
check state
Browse files Browse the repository at this point in the history
  • Loading branch information
0xripleys committed Sep 26, 2024
1 parent e8e619a commit 333fe17
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions token-lending/program/tests/donate_to_reserve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ mod helpers;

use helpers::*;
use solana_program_test::*;
use solend_sdk::state::Reserve;

use std::collections::HashSet;

Expand Down Expand Up @@ -53,6 +54,12 @@ async fn test_donate_to_reserve() {
.await
.unwrap();

let reserve_post = test
.load_account::<Reserve>(reserves[0].pubkey)
.await;

assert_eq!(reserve_post.account.liquidity.available_amount, 200_000 * FRACTIONAL_TO_USDC);

let (balance_changes, _) = balance_checker.find_balance_changes(&mut test).await;
let expected_balance_changes = HashSet::from([
TokenBalanceChange {
Expand Down

0 comments on commit 333fe17

Please sign in to comment.