Skip to content

Commit 5c58944

Browse files
committed
Fix build
1 parent 96d46e9 commit 5c58944

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Middleware/Diagnostics/test/UnitTests/DeveloperExceptionPageMiddlewareTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -541,8 +541,8 @@ public async Task UnhandledError_ExceptionNameTagAdded()
541541
var tcs = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously);
542542

543543
var meterFactory = new TestMeterFactory();
544-
using var instrumentRecorder = new InstrumentRecorder<double>(meterFactory, "Microsoft.AspNetCore.Hosting", "http-server-request-duration");
545-
using var diagnosticsRequestExceptionRecorder = new InstrumentRecorder<long>(meterFactory, DiagnosticsMetrics.MeterName, "diagnostics-handler-exception");
544+
using var requestDurationRecorder = new InstrumentRecorder<double>(meterFactory, "Microsoft.AspNetCore.Hosting", "http-server-request-duration");
545+
using var requestExceptionRecorder = new InstrumentRecorder<long>(meterFactory, DiagnosticsMetrics.MeterName, "diagnostics-handler-exception");
546546
using var measurementReporter = new MeasurementReporter<double>(meterFactory, "Microsoft.AspNetCore.Hosting", "http-server-request-duration");
547547
measurementReporter.Register(m =>
548548
{
@@ -588,7 +588,7 @@ public async Task UnhandledError_ExceptionNameTagAdded()
588588
Assert.Equal(500, (int)m.Tags.ToArray().Single(t => t.Key == "status-code").Value);
589589
Assert.Equal("System.Exception", (string)m.Tags.ToArray().Single(t => t.Key == "exception-name").Value);
590590
});
591-
Assert.Collection(diagnosticsRequestExceptionRecorder.GetMeasurements(),
591+
Assert.Collection(requestExceptionRecorder.GetMeasurements(),
592592
m => AssertRequestException(m, "System.Exception", "Unhandled"));
593593
}
594594

0 commit comments

Comments
 (0)