This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-io.git
The following commit(s) were added to refs/heads/master by this push: new e92e6c5d testProbeContentType behavior is OS-dependent. e92e6c5d is described below commit e92e6c5d1d1330e4b5c1b89947a8e38aead6185b Author: Gary Gregory <gardgreg...@gmail.com> AuthorDate: Sun Jul 24 12:47:53 2022 -0400 testProbeContentType behavior is OS-dependent. --- src/test/java/org/apache/commons/io/file/FilesUncheckTest.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/apache/commons/io/file/FilesUncheckTest.java b/src/test/java/org/apache/commons/io/file/FilesUncheckTest.java index 6bcb1041..e0615003 100644 --- a/src/test/java/org/apache/commons/io/file/FilesUncheckTest.java +++ b/src/test/java/org/apache/commons/io/file/FilesUncheckTest.java @@ -333,7 +333,10 @@ public class FilesUncheckTest { @Test public void testProbeContentType() { - assertNull(FilesUncheck.probeContentType(FILE_PATH_EMPTY)); + @SuppressWarnings("unused") + final String probeContentType = FilesUncheck.probeContentType(FILE_PATH_EMPTY); + // Empirical: probeContentType is null on Windows + // Empirical: probeContentType is "text/plain" on Ubuntu assertEquals("text/xml", FilesUncheck.probeContentType(Paths.get("src/test/resources/org/apache/commons/io/testfileBOM.xml"))); }