Skip to content

Commit

Permalink
CI: added some waits to fix WriteDescendingRollingFile
Browse files Browse the repository at this point in the history
  • Loading branch information
VitaliyMF committed Jun 5, 2024
1 parent 7182899 commit beee8e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/NReco.Logging.Tests/FileProviderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,9 @@ public void WriteDescendingRollingFile() {
createFactoryAndTestLogger();
for (int i = 0; i < 1000; i++) {
logger.LogInformation("TEST 0123456789");
if (i % 50 == 0) {
System.Threading.Thread.Sleep(20); // give some time for log writer to handle the queue
}
}
factory.Dispose();
Assert.Equal(5, Directory.GetFiles(tmpFileDir, "test*.log").Length);
Expand Down

0 comments on commit beee8e0

Please sign in to comment.