From 34ab393c72f1b0441f36a900fb17416c74a4e125 Mon Sep 17 00:00:00 2001 From: FredApps Date: Sat, 14 Nov 2026 18:20:30 +0100 Subject: [PATCH] Tests: the oversized pivot cache warning names the part limit The package reader reports a part over the limit as "expands to more than bytes"; the test added in #2491 expected the declared size and failed on main. --- crates/xlsx/src/tests/pivot_tests.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/xlsx/src/tests/pivot_tests.rs b/crates/xlsx/src/tests/pivot_tests.rs index 58563cb9f..d0a8e0bfc 100644 --- a/crates/xlsx/src/tests/pivot_tests.rs +++ b/crates/xlsx/src/tests/pivot_tests.rs @@ -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); }