]> source.dussan.org Git - poi.git/commitdiff
Need to lower the min expected width after changes for bug 66632
authorDominik Stadler <centic@apache.org>
Thu, 8 Jun 2023 15:54:50 +0000 (15:54 +0000)
committerDominik Stadler <centic@apache.org>
Thu, 8 Jun 2023 15:54:50 +0000 (15:54 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910309 13f79535-47bb-0310-9956-ffa450edef68

poi-ooxml/src/test/java/org/apache/poi/xssf/streaming/TestSXSSFSheetAutoSizeColumn.java

index 6fbfc58ca81583bd78de153912bfddd8db50b028..629ebecc44136faf881137fcb2759f597d09290c 100644 (file)
@@ -210,7 +210,7 @@ class TestSXSSFSheetAutoSizeColumn {
             final int maxExpectedWidth = expectedWidth * 3 / 2;
             assertColumnWidthStrictlyWithinRange(sheet.getColumnWidth(0), minExpectedWidth, maxExpectedWidth); //short
         } else {
-            assertColumnWidthStrictlyWithinRange(sheet.getColumnWidth(0), 1000, MAX_COLUMN_WIDTH); //long
+            assertColumnWidthStrictlyWithinRange(sheet.getColumnWidth(0), 950, MAX_COLUMN_WIDTH); //long
         }
         assertColumnWidthStrictlyWithinRange(sheet.getColumnWidth(1), 0, COLUMN_WIDTH_THRESHOLD_BETWEEN_SHORT_AND_LONG); //short
     }