Skip to content

Commit

Permalink
Add panicking test
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyera Eulberg committed Aug 6, 2020
1 parent 03263c8 commit 394c0ea
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions ledger/src/blockstore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6059,6 +6059,19 @@ pub mod tests {
}
}

#[test]
fn test_empty_transaction_status() {
let blockstore_path = get_tmp_ledger_path!();
let blockstore = Blockstore::open(&blockstore_path).unwrap();
blockstore.set_roots(&[0]).unwrap();
assert_eq!(
blockstore
.get_confirmed_transaction(Signature::default(), None)
.unwrap(),
None
);
}

#[test]
fn test_get_confirmed_signatures_for_address() {
let blockstore_path = get_tmp_ledger_path!();
Expand Down

0 comments on commit 394c0ea

Please sign in to comment.