Skip to content

Commit 6407805

Browse files
author
George
committed
Update CompressionHandlerTests.cs
Ensure that compressed data is the same as decompressed data.
1 parent e048795 commit 6407805

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/Microsoft.Graph.DotnetCore.Core.Test/Requests/Middleware/CompressionHandlerTests.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ public async Task CompressionHandler_should_keep_headers_after_decompression()
125125
this.testHttpMessageHandler.SetHttpResponse(httpResponse);
126126

127127
HttpResponseMessage compressedResponse = await this.invoker.SendAsync(httpRequestMessage, new CancellationToken());
128-
string responseContentString = await compressedResponse.Content.ReadAsStringAsync();
128+
string decompressedResponseString = await compressedResponse.Content.ReadAsStringAsync();
129+
130+
Assert.Equal(decompressedResponseString, stringToCompress);
129131

130132
// Ensure that headers in the compressedResponse are the same as in the original, expected response.
131133
Assert.NotEmpty(compressedResponse.Headers);

0 commit comments

Comments
 (0)