Hm... this is the second time I see this test fail:
Stacktrace

java.lang.AssertionError
        at 
org.apache.logging.log4j.core.appender.rolling.RollingAppenderOnStartupTest.afterClass(RollingAppenderOnStartupTest.java:85)


What does this test do? It looks like it remembers the size of the first
non-empty file in the directory, and then asserts that all other files are
the same size, is that correct?

@AfterClass
public static void afterClass() throws Exception {
    long size = 0;
    try (DirectoryStream<Path> directoryStream =
Files.newDirectoryStream(Paths.get("target/onStartup"))) {
        for (Path path : directoryStream) {
            if (size == 0) {
                size = Files.size(path);
            } else {
                assertTrue(size == Files.size(path)); // <- line 85
            }
            Files.delete(path);
        }
        Files.delete(Paths.get("target/onStartup"));
    }
}










On Sun, Jun 12, 2016 at 1:17 PM, Apache Jenkins Server <
[email protected]> wrote:

> See <https://builds.apache.org/job/Log4j%202.x/2019/changes>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to