Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
gcbeattyAWS committed Dec 18, 2024
1 parent 2919cfe commit a374bd5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public async Task AssertResponsesEqual(HttpResponseMessage actualResponse, HttpR
if (headersToIgnore.Contains(header.Key)) continue;
Assert.True(actualResponse.Headers.TryGetValues(header.Key, out var actualValues) ||
actualResponse.Content.Headers.TryGetValues(header.Key, out actualValues),
$"Header '{header.Key}={string.Join(", ", header.Value)}' not found in actual response");
$"Header '{header.Key}={string.Join(", ", header.Value.ToArray())}' not found in actual response");

var sortedExpectedValues = header.Value.OrderBy(v => v).ToArray();
var sortedActualValues = actualValues.OrderBy(v => v).ToArray();
Expand Down

0 comments on commit a374bd5

Please sign in to comment.