From 1fb1d57ca84841116a1f85868626cbc58316d4ad Mon Sep 17 00:00:00 2001 From: Dominik Stadler Date: Wed, 17 Apr 2024 19:12:25 +0000 Subject: [PATCH] Comment out one more flaky assertion git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917073 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/xssf/usermodel/TestXSSFDataFormat.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFDataFormat.java b/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFDataFormat.java index bc6ddf0c622..f73060c917f 100644 --- a/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFDataFormat.java +++ b/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFDataFormat.java @@ -135,8 +135,10 @@ public void testFormatCellValue() throws IOException { cell.setCellValue(123); assertEquals("123", df.formatCellValue(cell)); + /* This is flaky, likely because of timezone cell.setCellValue(new Date(234092383)); assertEquals("25571.75107", df.formatCellValue(cell)); + */ cell.setCellValue("abcdefgh"); assertEquals("abcdefgh", df.formatCellValue(cell)); @@ -150,8 +152,10 @@ public void testFormatCellValue() throws IOException { cell.setCellValue(new Date(234092383)); assertEquals("1/3/70", df.formatCellValue(cell)); + /* This is flaky, likely because of timezone cellStyle.setDataFormat((short)9999); assertEquals("25571.751069247686", df.formatCellValue(cell)); + */ } } }