Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,9 @@ await RunAsync<TestStartup>(
// 1st log record is from DfaMatcher,
// 2, 3, 4th are from our "test" category
// and 5 and 6th are logs from the /logatrequest endpoint
Assert.Equal(6, logCollector.Count);
var entries = logCollector.GetSnapshot();
var relevantCount = entries.Count(x => x.Category == "Microsoft.AspNetCore.Routing.Matching.DfaMatcher" || x.Category == "test" || x.Category == "logatrequest");
Assert.Equal(6, relevantCount);
Assert.Equal(LogLevel.Trace, logCollector.LatestRecord.Level);
Assert.Equal("test", logCollector.LatestRecord.Category);
});
Expand Down
Loading