File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
tests/Microsoft.Graph.DotnetCore.Core.Test/Requests/Middleware Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments