You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: gix/tests/gix/repository/mod.rs
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -136,10 +136,12 @@ mod dirwalk {
136
136
#[test]
137
137
fnsize_in_memory(){
138
138
let actual_size = std::mem::size_of::<Repository>();
139
-
let limit = 1250;
139
+
// Windows currently lays out `Repository` slightly larger than other platforms.
140
+
// Keep the tighter limit elsewhere so regular growth still gets noticed quickly.
141
+
let limit = ifcfg!(windows){1280}else{1250};
140
142
assert!(
141
143
actual_size <= limit,
142
-
"size of Repository shouldn't change without us noticing, it's meant to be cloned: should have been below {limit:?}, was {actual_size} (bigger on windows)"
144
+
"size of Repository shouldn't change without us noticing, it's meant to be cloned: should have been below {limit:?}, was {actual_size}"
0 commit comments