mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
Updated to exceptron api v1a
This commit is contained in:
parent
bb9e4c88ce
commit
16eecb3b4f
46 changed files with 52399 additions and 32 deletions
|
@ -58,16 +58,27 @@ namespace NzbDrone.Core.Test.Integeration
|
|||
[Test]
|
||||
public void should_be_able_to_submit_exceptions()
|
||||
{
|
||||
ReportingService.SetupExceptrackDriver();
|
||||
ReportingService.SetupExceptronDriver();
|
||||
|
||||
var log = new LogEventInfo();
|
||||
log.LoggerName = "LoggerName.LoggerName.LoggerName.LoggerName";
|
||||
log.Exception = new ArgumentOutOfRangeException();
|
||||
log.Message = "New message string. New message string. New message string. New message string. New message string. New message string.";
|
||||
try
|
||||
{
|
||||
ThrowException();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
var log = new LogEventInfo
|
||||
{
|
||||
LoggerName = "LoggerName.LoggerName.LoggerName.LoggerName",
|
||||
Exception = e,
|
||||
Message = "New message string. New message string.",
|
||||
};
|
||||
|
||||
var hash = ReportingService.ReportException(log);
|
||||
|
||||
hash.Should().HaveLength(8);
|
||||
}
|
||||
|
||||
var hash = ReportingService.ReportException(log);
|
||||
|
||||
hash.Should().HaveLength(8);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue