Skip to content

Commit e4eb9b0

Browse files
author
Josh DeGraw
committed
Removed code leftover from debugging tests
1 parent a15dee6 commit e4eb9b0

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

test/Sentry.NLog.Tests/SentryTargetTests.cs

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,7 @@ public LogFactory GetLoggerFactory(Action<SentryNLogOptions> customConfig = null
8989
[Fact]
9090
public void Can_configure_from_xml_file()
9191
{
92-
try
93-
{
94-
string configXml = $@"
92+
string configXml = $@"
9593
<nlog throwConfigExceptions='true'>
9694
<extensions>
9795
<add type='{typeof(SentryTarget).AssemblyQualifiedName}' />
@@ -105,19 +103,12 @@ public void Can_configure_from_xml_file()
105103
</targets>
106104
</nlog>";
107105

108-
var c = XmlLoggingConfiguration.CreateFromXmlString(configXml);
109-
110-
var t = c.FindTargetByName("sentry") as SentryTarget;
111-
Assert.NotNull(t);
112-
Assert.Equal(ValidDsnWithoutSecret, t.Options.Dsn.ToString());
113-
Assert.Equal("Development", t.Options.Environment);
114-
}
115-
catch (Exception ex)
116-
{
117-
_ = ex;
106+
var c = XmlLoggingConfiguration.CreateFromXmlString(configXml);
118107

119-
throw;
120-
}
108+
var t = c.FindTargetByName("sentry") as SentryTarget;
109+
Assert.NotNull(t);
110+
Assert.Equal(ValidDsnWithoutSecret, t.Options.Dsn.ToString());
111+
Assert.Equal("Development", t.Options.Environment);
121112
}
122113

123114
[Fact]
@@ -315,7 +306,7 @@ public void Log_WithFormat_EventCaptured()
315306
p.LogEntry.Formatted == $"Test {param} log"
316307
&& p.LogEntry.Message == expectedMessage));
317308
}
318-
309+
319310
[Fact]
320311
public void Log_SourceContextMatchesSentry_NoScopeConfigured()
321312
{

0 commit comments

Comments
 (0)