mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-19 23:16:46 +00:00
mine test
This commit is contained in:
@@ -93,12 +93,6 @@ async fn test_initialize() {
|
||||
let bus = Bus::try_from_bytes(&bus_account.data).unwrap();
|
||||
assert_eq!(bus.id as u8, i as u8);
|
||||
assert_eq!(bus.rewards, 0);
|
||||
println!(
|
||||
"Bus {:?} {:?} {:?}",
|
||||
bus_pdas[i].0,
|
||||
bus_account,
|
||||
bs64::encode(&bus_account.data)
|
||||
);
|
||||
}
|
||||
|
||||
// Test treasury state
|
||||
@@ -111,12 +105,6 @@ async fn test_initialize() {
|
||||
assert_eq!(treasury.epoch_start_at as u8, 0);
|
||||
assert_eq!(treasury.reward_rate, INITIAL_REWARD_RATE);
|
||||
assert_eq!(treasury.total_claimed_rewards as u8, 0);
|
||||
println!(
|
||||
"Treasury {:?} {:?} {:?}",
|
||||
treasury_pda.0,
|
||||
treasury_account,
|
||||
bs64::encode(&treasury_account.data)
|
||||
);
|
||||
|
||||
// Test mint state
|
||||
let mint_account = banks.get_account(mint_pda.0).await.unwrap().unwrap();
|
||||
@@ -127,12 +115,6 @@ async fn test_initialize() {
|
||||
assert_eq!(mint.decimals, ore::TOKEN_DECIMALS);
|
||||
assert_eq!(mint.is_initialized, true);
|
||||
assert_eq!(mint.freeze_authority, COption::None);
|
||||
println!(
|
||||
"Mint {:?} {:?} {:?}",
|
||||
mint_pda.0,
|
||||
mint_account,
|
||||
bs64::encode(&mint_account.data)
|
||||
);
|
||||
|
||||
// Test treasury token state
|
||||
let treasury_tokens_account = banks
|
||||
@@ -150,14 +132,6 @@ async fn test_initialize() {
|
||||
assert_eq!(treasury_tokens.is_native, COption::None);
|
||||
assert_eq!(treasury_tokens.delegated_amount, 0);
|
||||
assert_eq!(treasury_tokens.close_authority, COption::None);
|
||||
println!(
|
||||
"Treasury tokens {:?} {:?} {:?}",
|
||||
treasury_tokens_address,
|
||||
treasury_tokens_account,
|
||||
bs64::encode(&treasury_tokens_account.data)
|
||||
);
|
||||
|
||||
// assert!(false);
|
||||
}
|
||||
|
||||
async fn setup_program_test_env() -> (BanksClient, Keypair, Hash) {
|
||||
|
||||
Reference in New Issue
Block a user