Skip to content

Commit f6e55b5

Browse files
author
Sergey Komisarchik
committed
another Travis failing fix attempts
1 parent 85c64be commit f6e55b5

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

test/Serilog.Settings.Configuration.Tests/DynamicLevelChangeTests.cs

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,8 @@ public DynamicLevelChangeTests()
2626
{
2727
UpdateConfig(LogEventLevel.Information, LogEventLevel.Information, LogEventLevel.Information);
2828

29-
var jsonConfigurationSource = new JsonConfigurationSource
30-
{
31-
FileProvider = null,
32-
Path = ConfigFilename,
33-
Optional = false,
34-
ReloadOnChange = true,
35-
ReloadDelay = 100
36-
};
37-
38-
jsonConfigurationSource.ResolveFileProvider();
39-
4029
_config = new ConfigurationBuilder()
41-
.Add(jsonConfigurationSource)
30+
.AddJsonFile(ConfigFilename, false, true)
4231
.Build();
4332
}
4433

@@ -80,7 +69,7 @@ public void ShouldRespectDynamicLevelChanges()
8069
void UpdateConfig(LogEventLevel? minimumLevel = null, LogEventLevel? overrideLevel = null, LogEventLevel? switchLevel = null)
8170
{
8271
File.WriteAllText(ConfigFilename, BuildConfiguration());
83-
Thread.Sleep(250);
72+
Thread.Sleep(300);
8473

8574
string BuildConfiguration()
8675
{

0 commit comments

Comments
 (0)