From: Eirik Tsarpalis Date: Fri, 26 Jul 2019 13:12:26 +0000 (+0100) Subject: address feedback X-Git-Tag: submit/tizen/20210909.063632~11031^2~830^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f424b22c1508484cd4a88893f887e21b9ba0b67c;p=platform%2Fupstream%2Fdotnet%2Fruntime.git address feedback Commit migrated from https://github.com/dotnet/corefx/commit/b32c61aa4741668d6f4009649412ff80f5d64f85 --- diff --git a/src/libraries/System.Net.Http/tests/StressTests/HttpStress/ClientOperations.cs b/src/libraries/System.Net.Http/tests/StressTests/HttpStress/ClientOperations.cs index cfe7632..20d2d73 100644 --- a/src/libraries/System.Net.Http/tests/StressTests/HttpStress/ClientOperations.cs +++ b/src/libraries/System.Net.Http/tests/StressTests/HttpStress/ClientOperations.cs @@ -199,8 +199,8 @@ namespace HttpStress ValidateHttpVersion(res, httpVersion); ValidateStatusCode(res); - // Validate that response headers are being echoed - foreach (var reqHeader in req.Headers) + // Validate that request headers are being echoed + foreach (KeyValuePair> reqHeader in req.Headers) { if (!res.Headers.TryGetValues(reqHeader.Key, out var values)) { @@ -458,7 +458,7 @@ namespace HttpStress private static (string, MultipartContent) GetMultipartContent(RequestContext clientContext, int numFormFields) { - var multipartContent = new MultipartContent("prefix" + clientContext.GetRandomString(0, clientContext.MaxContentLength, alphaNumericOnly: true), "test_boundary"); + var multipartContent = new MultipartContent("prefix" + clientContext.GetRandomString(0, clientContext.MaxContentLength), "test_boundary"); StringBuilder sb = new StringBuilder(); int num = clientContext.GetRandomInt32(1, numFormFields + 1); diff --git a/src/libraries/System.Net.Http/tests/StressTests/HttpStress/Program.cs b/src/libraries/System.Net.Http/tests/StressTests/HttpStress/Program.cs index 0658180..ca184ed 100644 --- a/src/libraries/System.Net.Http/tests/StressTests/HttpStress/Program.cs +++ b/src/libraries/System.Net.Http/tests/StressTests/HttpStress/Program.cs @@ -52,8 +52,7 @@ public class Program return; } - await - Run( + await Run( runMode : cmdline.ValueForOption("-runMode"), serverUri : cmdline.ValueForOption("-serverUri"), httpSys : cmdline.ValueForOption("-httpSys"),