Skip to content

Commit 555acfa

Browse files
committed
fix tests for mono
1 parent 1bc5dbd commit 555acfa

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/log4net.Tests/Appender/RollingFileAppenderTest.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1444,6 +1444,10 @@ public void TestExclusiveLockRecovers()
14441444
[Test]
14451445
public void TestExclusiveLockLocks()
14461446
{
1447+
if (!isMono)
1448+
{
1449+
Assert.Inconclusive("mono has a different behaviour");
1450+
}
14471451
string filename = "test_exclusive_lock_locks.log";
14481452
bool locked = false;
14491453

@@ -1459,11 +1463,8 @@ public void TestExclusiveLockLocks()
14591463
}
14601464
catch (IOException e1)
14611465
{
1462-
if (!isMono)
1463-
{
1464-
Assert.AreEqual("The process cannot access the file ", e1.Message.Substring(0, 35),
1465-
"Unexpected exception");
1466-
}
1466+
Assert.AreEqual("The process cannot access the file ", e1.Message.Substring(0, 35),
1467+
"Unexpected exception");
14671468
locked = true;
14681469
}
14691470

0 commit comments

Comments
 (0)