Tests: the oversized pivot cache warning names the part limit

The package reader reports a part over the limit as "expands to more
than <limit> bytes"; the test added in #2491 expected the declared size
and failed on main.
This commit is contained in:
FredApps committed 2026-11-14 18:20:30 +01:00
1 parent c2aba7a3f4
commit 34ab393c72
1 file changed
+2 -1
+2 -1
View File
@@ -751,7 +751,8 @@ fn oversized_pivot_cache_warns() {
let (wb, report) = read_xlsx(&bytes).unwrap();
assert_eq!(wb.sheet(0).unwrap().name, "Data");
assert!(wb.sheet(0).unwrap().pivots.is_empty());
let lost = format!("a PivotTable's cache is too large to read ({CACHE_PART} expands to {declared} bytes); kept as plain cells");
let limit = crate::package::MAX_PART;
let lost = format!("a PivotTable's cache is too large to read ({CACHE_PART} expands to more than {limit} bytes); kept as plain cells");
assert!(report.warnings.contains(&lost), "{:?}", report.warnings);
}