diff --git a/anker/tests/tests/deposit.rs b/anker/tests/tests/deposit.rs index 658004bc4..19b725c06 100644 --- a/anker/tests/tests/deposit.rs +++ b/anker/tests/tests/deposit.rs @@ -27,6 +27,16 @@ async fn test_successful_deposit_during_first_epoch() { // so the amounts in SOL, stSOL, and bSOL are all equal. assert_eq!(reserve_balance, TEST_DEPOSIT_AMOUNT); assert_eq!(recipient_balance, BLamports(TEST_DEPOSIT_AMOUNT.0)); + let anker = context.get_anker().await; + assert_eq!( + anker.metrics.deposit_metric.st_sol_total, + TEST_DEPOSIT_AMOUNT + ); + assert_eq!( + anker.metrics.deposit_metric.b_sol_total, + BLamports(TEST_DEPOSIT_AMOUNT.0) + ); + assert_eq!(anker.metrics.deposit_metric.count, 1); } #[tokio::test] diff --git a/anker/tests/tests/withdraw.rs b/anker/tests/tests/withdraw.rs index 8e3729b7c..9c8e6bc49 100644 --- a/anker/tests/tests/withdraw.rs +++ b/anker/tests/tests/withdraw.rs @@ -50,6 +50,10 @@ async fn test_withdraw_single_epoch() { .get_st_sol_balance(context.st_sol_reserve) .await; assert_eq!(reserve_st_sol, StLamports(0)); + let anker = context.get_anker().await; + assert_eq!(anker.metrics.withdraw_metric.st_sol_total, st_sol_balance); + assert_eq!(anker.metrics.withdraw_metric.b_sol_total, b_sol_balance); + assert_eq!(anker.metrics.withdraw_metric.count, 1); } #[tokio::test]