Skip to content

Commit

Permalink
Improve assert! and its test
Browse files Browse the repository at this point in the history
  • Loading branch information
yhchiang-sol committed Dec 15, 2023
1 parent 22000a3 commit 43b4c0c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions accounts-db/src/tiered_storage/hot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -573,9 +573,7 @@ pub mod tests {
}

#[test]
#[should_panic(
expected = "offset.saturating_add(std::mem::size_of::<HotAccountMeta>()) <=\\n self.footer.index_block_offset"
)]
#[should_panic(expected = "self.footer.index_block_offset")]
fn test_get_acount_meta_from_offset_out_of_bounds() {
// Generate a new temp path that is guaranteed to NOT already have a file.
let temp_dir = TempDir::new().unwrap();
Expand Down

0 comments on commit 43b4c0c

Please sign in to comment.