mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 20:12:41 +02:00
fixed broken test
log file is not kept open anymore
This commit is contained in:
parent
acf54203e5
commit
b12b8724b9
@ -22,7 +22,6 @@ public void CoreTestSetup()
|
|||||||
{
|
{
|
||||||
_subject = null;
|
_subject = null;
|
||||||
|
|
||||||
Mocker.SetConstant<ICacheManger>(new CacheManger());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected TSubject Subject
|
protected TSubject Subject
|
||||||
@ -77,6 +76,7 @@ public void TestBaseSetup()
|
|||||||
{
|
{
|
||||||
GetType().IsPublic.Should().BeTrue("All Test fixtures should be public to work in mono.");
|
GetType().IsPublic.Should().BeTrue("All Test fixtures should be public to work in mono.");
|
||||||
|
|
||||||
|
Mocker.SetConstant<ICacheManger>(new CacheManger());
|
||||||
|
|
||||||
Mocker.SetConstant(LogManager.GetLogger("TestLogger"));
|
Mocker.SetConstant(LogManager.GetLogger("TestLogger"));
|
||||||
|
|
||||||
@ -86,6 +86,7 @@ public void TestBaseSetup()
|
|||||||
|
|
||||||
MockedRestProvider = new Mock<RestProvider>();
|
MockedRestProvider = new Mock<RestProvider>();
|
||||||
|
|
||||||
|
|
||||||
Directory.CreateDirectory(TempFolder);
|
Directory.CreateDirectory(TempFolder);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
<layout>${exception:format=ToString}</layout>
|
<layout>${exception:format=ToString}</layout>
|
||||||
</parameter>
|
</parameter>
|
||||||
</target>
|
</target>
|
||||||
<target xsi:type="File" name="rollingFileLogger" fileName="${appLog}" autoFlush="true" keepFileOpen="true"
|
<target xsi:type="File" name="rollingFileLogger" fileName="${appLog}" autoFlush="true" keepFileOpen="false"
|
||||||
concurrentWrites="false" concurrentWriteAttemptDelay="50" concurrentWriteAttempts ="10"
|
concurrentWrites="false" concurrentWriteAttemptDelay="50" concurrentWriteAttempts ="10"
|
||||||
archiveAboveSize="1024000" maxArchiveFiles="5" enableFileDelete="true" archiveNumbering ="Rolling"
|
archiveAboveSize="1024000" maxArchiveFiles="5" enableFileDelete="true" archiveNumbering ="Rolling"
|
||||||
layout="${date:format=yy-M-d HH\:mm\:ss.f}|${level}|${logger}|${message}${onexception:inner=${newline}${newline}${exception:format=ToString}${newline}}"/>
|
layout="${date:format=yy-M-d HH\:mm\:ss.f}|${level}|${logger}|${message}${onexception:inner=${newline}${newline}${exception:format=ToString}${newline}}"/>
|
||||||
|
Loading…
Reference in New Issue
Block a user