mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-27 01:57:21 +00:00
Fixed broken log provider tests.
This commit is contained in:
parent
d8fb295214
commit
eb323b5394
1 changed files with 3 additions and 3 deletions
|
@ -46,7 +46,7 @@ public void write_log()
|
|||
var logItem = db.Fetch<Log>().First();
|
||||
Assert.AreNotEqual(new DateTime(), logItem.Time);
|
||||
Assert.AreEqual(message, logItem.Message);
|
||||
Assert.AreEqual("Core.Test.LogProviderTest", logItem.Logger);
|
||||
Assert.AreEqual("Core.Test.ProviderTests.LogProviderTest", logItem.Logger);
|
||||
|
||||
Logger.Name.Should().EndWith(logItem.Logger);
|
||||
|
||||
|
@ -143,7 +143,7 @@ public void write_log_exception()
|
|||
var logItem = db.Fetch<Log>().First();
|
||||
Assert.AreNotEqual(new DateTime(), logItem.Time);
|
||||
Assert.AreEqual(message + ": " + ex.Message, logItem.Message);
|
||||
Assert.AreEqual("Core.Test.LogProviderTest", logItem.Logger);
|
||||
Assert.AreEqual("Core.Test.ProviderTests.LogProviderTest", logItem.Logger);
|
||||
Assert.AreEqual(LogLevel.Error.Name, logItem.Level);
|
||||
Assert.AreEqual(ex.GetType().ToString(), logItem.ExceptionType);
|
||||
Assert.AreEqual(ex.ToString(), logItem.Exception);
|
||||
|
@ -177,7 +177,7 @@ public void write_log_exception_no_message_should_use_exception_message()
|
|||
var logItem = db.Fetch<Log>().First();
|
||||
Assert.AreNotEqual(new DateTime(), logItem.Time);
|
||||
Assert.AreEqual(ex.Message, logItem.Message);
|
||||
Assert.AreEqual("Core.Test.LogProviderTest", logItem.Logger);
|
||||
Assert.AreEqual("Core.Test.ProviderTests.LogProviderTest", logItem.Logger);
|
||||
Assert.AreEqual(LogLevel.Error.Name, logItem.Level);
|
||||
Assert.AreEqual(ex.GetType().ToString(), logItem.ExceptionType);
|
||||
Assert.AreEqual(ex.ToString(), logItem.Exception);
|
||||
|
|
Loading…
Reference in a new issue