Skip to content

Conversation

rjuare8
Copy link

@rjuare8 rjuare8 commented Oct 17, 2025

Stabilize RollingAppenderDeleteAccumulatedCount1Test.

Fixes #3003.

System.out.println(file + " (" + file.length() + "B) "
+ FixedDateFormat.create(FixedFormat.ABSOLUTE).format(file.lastModified()));
}
// Wait until the directory contents stabilize (no size change across two polls)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. You don't need Thread.sleep(), you can remove it. (Awaitility already polls.)
  2. Don't wait until contents stabilize, instead, wait until what you want to verify succeeds. That is, place the entire check logic there.
  3. Sign all your commits

@vy vy self-assigned this Oct 17, 2025
@vy vy added tests Pull requests or issues related to tests waiting-for-user More information is needed from the user labels Oct 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Pull requests or issues related to tests waiting-for-user More information is needed from the user

Projects

Status: To triage

Development

Successfully merging this pull request may close these issues.

RollingAppenderDeleteAccumulatedCount1Test is unreliable

2 participants