Skip to content

Commit

Permalink
fix rename of HOT_ACCOUNT_ALIGNMENT (#34422)
Browse files Browse the repository at this point in the history
  • Loading branch information
AshwinSekar authored Dec 12, 2023
1 parent 79d0a47 commit 337c233
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions accounts-db/src/tiered_storage/hot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -380,15 +380,15 @@ pub mod tests {
#[test]
fn test_max_hot_account_offset_out_of_bounds() {
assert_matches!(
HotAccountOffset::new(MAX_HOT_ACCOUNT_OFFSET + HOT_ACCOUNT_OFFSET_ALIGNMENT),
HotAccountOffset::new(MAX_HOT_ACCOUNT_OFFSET + HOT_ACCOUNT_ALIGNMENT),
Err(TieredStorageError::OffsetOutOfBounds(_, _))
);
}

#[test]
fn test_max_hot_account_offset_alignment_error() {
assert_matches!(
HotAccountOffset::new(HOT_ACCOUNT_OFFSET_ALIGNMENT - 1),
HotAccountOffset::new(HOT_ACCOUNT_ALIGNMENT - 1),
Err(TieredStorageError::OffsetAlignmentError(_, _))
);
}
Expand Down

0 comments on commit 337c233

Please sign in to comment.