Add warning when running stress test with DEBUG build (#2436)
* Add warning when running stress test with DEBUG build * Revert unexpected change
This commit is contained in:
parent
124c12afdf
commit
c0af496fd8
|
|
@ -30,6 +30,10 @@ public partial class Program
|
|||
|
||||
public static void Stress(int concurrency = 0)
|
||||
{
|
||||
#if DEBUG
|
||||
Console.WriteLine("***WARNING*** The current build is DEBUG which may affect timing!\n");
|
||||
#endif
|
||||
|
||||
if (concurrency < 0)
|
||||
{
|
||||
throw new ArgumentOutOfRangeException(nameof(concurrency), "concurrency level should be a non-negative number.");
|
||||
|
|
|
|||
Loading…
Reference in New Issue