Update src/System.Net.Http/tests/StressTests/HttpStress/Program.cs
authorEirik Tsarpalis <eirik.tsarpalis@gmail.com>
Tue, 16 Jul 2019 14:02:44 +0000 (15:02 +0100)
committerGitHub <noreply@github.com>
Tue, 16 Jul 2019 14:02:44 +0000 (15:02 +0100)
Co-Authored-By: Stephen Toub <stoub@microsoft.com>
Commit migrated from https://github.com/dotnet/corefx/commit/ac239fc682f296c7eeb953f9ee26dd8a0351b6e4

src/libraries/System.Net.Http/tests/StressTests/HttpStress/Program.cs

index fb4415e..dee4000 100644 (file)
@@ -683,7 +683,7 @@ public class Program
             else if (GetRandomBoolean(_cancellationProbability))
             {
                 // trigger a random cancellation
-                using(var cts = new CancellationTokenSource())
+                using (var cts = new CancellationTokenSource())
                 {
                     int delayMs = _random.Next(0, 2);
                     Task<HttpResponseMessage> task = _client.SendAsync(request, httpCompletion, cts.Token);