Skip to content

Commit

Permalink
fix account loader unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
2501babe committed Sep 30, 2024
1 parent 1454d06 commit 59f2072
Show file tree
Hide file tree
Showing 3 changed files with 211 additions and 117 deletions.
2 changes: 0 additions & 2 deletions runtime/src/bank/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7130,7 +7130,6 @@ fn test_bpf_loader_upgradeable_deploy_with_max_len() {
invocation_message.clone(),
bank.last_blockhash(),
);
// XXX TODO FIXME this might change back to ProgramAccountNotFound when i add the cache stuff back
assert_eq!(
bank.process_transaction(&transaction),
Err(TransactionError::InvalidProgramForExecution),
Expand All @@ -7152,7 +7151,6 @@ fn test_bpf_loader_upgradeable_deploy_with_max_len() {
let instruction = Instruction::new_with_bytes(buffer_address, &[], Vec::new());
let message = Message::new(&[instruction], Some(&mint_keypair.pubkey()));
let transaction = Transaction::new(&[&binding], message, bank.last_blockhash());
// XXX TODO FIXME this might change back to ProgramAccountNotFound when i add the cache stuff back
assert_eq!(
bank.process_transaction(&transaction),
Err(TransactionError::InvalidProgramForExecution),
Expand Down
Loading

0 comments on commit 59f2072

Please sign in to comment.