Skip to content

Commit 45ab4f5

Browse files
committed
Make assertions limiting data structure size account for more platforms
1 parent cbeb8b4 commit 45ab4f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

imageflow_core/src/context.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ fn test_context_size() {
677677
fn test_thread_safe_context_size() {
678678
println!("std::mem::sizeof(ThreadSafeContext) = {}", std::mem::size_of::<ThreadSafeContext>());
679679
eprintln!("std::mem::sizeof(ThreadSafeContext) = {}", std::mem::size_of::<ThreadSafeContext>());
680-
assert!(std::mem::size_of::<ThreadSafeContext>() <= 488);
680+
assert!(std::mem::size_of::<ThreadSafeContext>() <= 500);
681681
}
682682

683683
#[test]
@@ -704,8 +704,8 @@ fn test_calculate_context_heap_size() {
704704

705705
// Fail if this grows so we can notice it
706706
assert!(context_allocs <= 6);
707-
assert!(context_bytes <= 930);
707+
assert!(context_bytes <= 950);
708708

709709
assert!(context_allocs <= 6);
710-
assert!(thread_safe_bytes <= 1097);
710+
assert!(thread_safe_bytes <= 1150);
711711
}

0 commit comments

Comments
 (0)