Skip to content

Commit

Permalink
Fix ArgumentException in FindLogEntries (#1235)
Browse files Browse the repository at this point in the history
  • Loading branch information
StefH authored Jan 9, 2025
1 parent 44c1c7a commit 6aa1594
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/WireMock.Net/Server/WireMockServer.LogEntries.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ public IReadOnlyList<ILogEntry> FindLogEntries(params IRequestMatcher[] matchers
{
Guard.NotNull(matchers);

var results = new Dictionary<LogEntry, RequestMatchResult>();
var results = new Dictionary<ILogEntry, RequestMatchResult>();

foreach (var log in _options.LogEntries.ToArray())
var allLogEntries = LogEntries;
foreach (var log in allLogEntries)
{
var requestMatchResult = new RequestMatchResult();
foreach (var matcher in matchers)
Expand Down

0 comments on commit 6aa1594

Please sign in to comment.