Explorar o código

Fixing .NET 4.0 build issue with stress tests.

Bart De Smet %!s(int64=10) %!d(string=hai) anos
pai
achega
6e2aff65e8

+ 2 - 2
Rx.NET/Source/Tests.System.Reactive/Stress/Linq/ReplaySubject.cs

@@ -1,6 +1,6 @@
 // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
 
-#if STRESS
+#if STRESS && !NO_TPL && !NO_TASK_DELAY
 using System;
 using System.Collections.Generic;
 using System.Diagnostics;
@@ -30,7 +30,7 @@ namespace ReactiveTests.Stress.Linq
             {
                 var rnd2 = new Random(rnd.Next());
 
-                ts.Add(Task.Run(async () =>
+                ts.Add(Task.Factory.StartNew(async () =>
                 {
                     var n = rnd2.Next(10, 1000);