Skip to content

Commit

Permalink
add extra case for flash repay failure. this is a build issue (test-bpf
Browse files Browse the repository at this point in the history
vs x86 or whatever)
  • Loading branch information
0xripleys committed Dec 7, 2022
1 parent 4529e22 commit 83b5b9a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions token-lending/program/tests/flash_borrow_repay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1302,6 +1302,10 @@ async fn test_fail_repay_from_diff_reserve() {
.unwrap_err();
match err {
TransportError::IoError(..) => (),
TransportError::TransactionError(TransactionError::InstructionError(
1,
InstructionError::PrivilegeEscalation,
)) => (),
_ => panic!("Unexpected error: {:?}", err),
};
}
Expand Down

0 comments on commit 83b5b9a

Please sign in to comment.