Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
erikmav committed Mar 12, 2024
1 parent 82f39b6 commit a25f1af
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/log4net.Tests/Appender/RollingFileAppenderTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1135,7 +1135,7 @@ private void ConfigureRootAppender()

if (_root.Repository is not null)
{
_root.Repository.Configured = true;
_root.Repository.Configured = true;
}
}

Expand Down Expand Up @@ -1735,19 +1735,13 @@ public void TestInterProcessLockUnlocks()
[Test]
public void TestInterProcessLockRoll()
{
string filename = "test_interprocess_lock_roll.log";
const string filename = "test_interprocess_lock_roll.log";

SilentErrorHandler sh = new SilentErrorHandler();
ILogger log = CreateLogger(filename, new FileAppender.InterProcessLock(), sh, 1, 2);

Assert.DoesNotThrow(delegate
{
log.Log(GetType(), Level.Info, "A", null);
});
Assert.DoesNotThrow(delegate
{
log.Log(GetType(), Level.Info, "A", null);
});
Assert.DoesNotThrow(() => log.Log(GetType(), Level.Info, "A", null));
Assert.DoesNotThrow(() => log.Log(GetType(), Level.Info, "A", null));

DestroyLogger();

Expand Down

0 comments on commit a25f1af

Please sign in to comment.