Skip to content

Commit

Permalink
fix(pageserver): more flexible layer size test
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Chi Z <chi@neon.tech>
  • Loading branch information
skyzh committed Jun 3, 2024
1 parent 69d18d6 commit c211706
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pageserver/src/tenant/storage_layer/layer/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -816,9 +816,9 @@ async fn eviction_cancellation_on_drop() {
/// below if it is really necessary to add more fields to the structures.
#[test]
fn layer_size() {
assert_eq!(std::mem::size_of::<LayerAccessStats>(), 2040);
assert!(std::mem::size_of::<LayerAccessStats>() <= 2048);
assert_eq!(std::mem::size_of::<PersistentLayerDesc>(), 104);
assert_eq!(std::mem::size_of::<LayerInner>(), 2344);
assert!(std::mem::size_of::<LayerInner>() <= 2376);
// it also has the utf8 path
}

Expand Down

0 comments on commit c211706

Please sign in to comment.