mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-16 11:37:58 +02:00
fixed broken tests.
This commit is contained in:
parent
b6e4f5ed46
commit
2f204e3d29
@ -15,8 +15,6 @@ namespace NzbDrone.Core.Test.InstrumentationTests
|
||||
[TestFixture]
|
||||
public class DatabaseTargetFixture : DbTest<DatabaseTarget, Log>
|
||||
{
|
||||
string _loggerName;
|
||||
|
||||
private static string _uniqueMessage;
|
||||
Logger _logger;
|
||||
|
||||
@ -37,7 +35,7 @@ public void Setup()
|
||||
LogManager.ReconfigExistingLoggers();
|
||||
|
||||
|
||||
_logger = NzbDroneLogger.GetLogger();
|
||||
_logger = NzbDroneLogger.GetLogger();
|
||||
|
||||
_uniqueMessage = "Unique message: " + Guid.NewGuid().ToString();
|
||||
}
|
||||
@ -119,7 +117,7 @@ public void Teardown()
|
||||
private void VerifyLog(Log logItem, LogLevel level)
|
||||
{
|
||||
logItem.Time.Should().BeWithin(TimeSpan.FromSeconds(2));
|
||||
logItem.Logger.Should().Be(_loggerName);
|
||||
logItem.Logger.Should().Be(this.GetType().Name);
|
||||
logItem.Level.Should().Be(level.Name);
|
||||
logItem.Method.Should().Be(new StackTrace().GetFrame(1).GetMethod().Name);
|
||||
_logger.Name.Should().EndWith(logItem.Logger);
|
||||
|
Loading…
Reference in New Issue
Block a user