diff --git a/test/NReco.Logging.Tests/FileProviderTests.cs b/test/NReco.Logging.Tests/FileProviderTests.cs index ce73a58..fcad93a 100644 --- a/test/NReco.Logging.Tests/FileProviderTests.cs +++ b/test/NReco.Logging.Tests/FileProviderTests.cs @@ -148,8 +148,8 @@ public void WriteAscendingStableBaseRollingFile() { for (int i = 0; i < 400; i++) { logger.LogInformation("TEST 0123456789"); - if (i % 20 == 0) { - System.Threading.Thread.Sleep(20); // give some time for log writer to handle the queue + if (i % 50 == 0) { + System.Threading.Thread.Sleep(50); // give some time for log writer to handle the queue } } factory.Dispose(); @@ -203,8 +203,8 @@ public void WriteDescendingRollingFile() { for (int i = 0; i < 400; i++) { logger.LogInformation("TEST 0123456789"); - if (i % 20 == 0) { - System.Threading.Thread.Sleep(20); // give some time for log writer to handle the queue + if (i % 50 == 0) { + System.Threading.Thread.Sleep(50); // give some time for log writer to handle the queue } } factory.Dispose(); @@ -223,8 +223,8 @@ public void WriteDescendingRollingFile() { createFactoryAndTestLogger(); for (int i = 0; i < 1000; i++) { logger.LogInformation("TEST 0123456789"); - if (i % 20 == 0) { - System.Threading.Thread.Sleep(20); // give some time for log writer to handle the queue + if (i % 50 == 0) { + System.Threading.Thread.Sleep(50); // give some time for log writer to handle the queue } } factory.Dispose();