Skip to content

Commit

Permalink
Raise the buffer for max file size to fix run on jenkins
Browse files Browse the repository at this point in the history
  • Loading branch information
jedla97 authored and jcarranzan committed Nov 28, 2024
1 parent 0d5dbd9 commit 9815970
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,11 @@ public void logRotationTest() throws IOException {
assertEquals(3, logFileNames.size(), "There should be 3 log file - one active and two backups");

// check main log file size, we have max 5KB configured
// adding extra 420 because the max file is not actual maximum of the file size :-)
// adding extra 520 because the max file is not actual maximum of the file size :-)
// it is just a limit after which Quarkus rotates (when logging finishes)
// see https://github.com/quarkusio/quarkus/issues/44346
assertTrue(Files.size(accessLogPath()) <= 5420, "Main log size should be max 5KB");
assertTrue(Files.size(accessLogPath()) <= 5520,
"Main log size should be max 5KB + 520B buffer, but was " + Files.size(accessLogPath()));

// check that archive logs are valid zip files
for (String filename : logFileNames) {
Expand Down

0 comments on commit 9815970

Please sign in to comment.