Skip to content

Commit 48bfd4a

Browse files
committed
emulate process crash
1 parent 8cdfad5 commit 48bfd4a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,11 @@ void PrintToConsole()
346346

347347
public void PrintCurrentResults(TimeSpan runtime)
348348
{
349+
if (runtime.TotalMinutes > 2.0)
350+
{
351+
System.Environment.Exit(1);
352+
}
353+
349354
Console.ForegroundColor = ConsoleColor.Cyan;
350355
Console.Write("[" + DateTime.Now + "]");
351356
Console.ResetColor();

0 commit comments

Comments
 (0)