Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some tests can fail randomly (WriteDescendingRollingFile, WriteAscendingStableBaseRollingFile) #75

Closed
VitaliyMF opened this issue Nov 12, 2024 · 1 comment
Labels

Comments

@VitaliyMF
Copy link
Contributor

VitaliyMF commented Nov 12, 2024

Reported here: #74 (comment)

I also noticed that sometimes tests related to this commit can fail (in my dev env, I often see WriteDescendingRollingFile failed).
It seems the problem is not in the FileLoggerProvider logic, and caused by a test that relies on System.Threading.Thread.Sleep(20).

@VitaliyMF
Copy link
Contributor Author

This happens because tests too fast and file modified date is the same which breaks the logic that determines 'last' file.
Added more delays to fix this issue with tests.

VitaliyMF added a commit that referenced this issue Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant