Commit 211326b3 authored by rpopma's avatar rpopma
Browse files

Fix Log4j1ConfigurationFactoryTest test that fails the build on Windows

parent 0c3288d8
Showing with 4 additions and 1 deletion
+4 -1
......@@ -24,6 +24,7 @@ import static org.junit.Assert.assertTrue;
import java.io.File;
import java.net.URISyntaxException;
import java.net.URL;
import java.nio.file.FileSystemException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.concurrent.TimeUnit;
......@@ -170,7 +171,9 @@ public class Log4j1ConfigurationFactoryTest {
System.out.println("expected: " + tempFileName + " Actual: " + appender.getFileName());
assertEquals(tempFileName, appender.getFileName());
} finally {
Files.deleteIfExists(tempFilePath);
try {
Files.deleteIfExists(tempFilePath);
} catch (FileSystemException ignored) {}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment