diff Implab.Test/AsyncTests.cs @ 106:d4e38929ce36 v2

promises refactoring
author cin
date Mon, 10 Nov 2014 18:00:28 +0300
parents 4d308952fd5e
children 2573b562e328
line wrap: on
line diff
--- a/Implab.Test/AsyncTests.cs	Mon Nov 10 10:17:54 2014 +0300
+++ b/Implab.Test/AsyncTests.cs	Mon Nov 10 18:00:28 2014 +0300
@@ -426,8 +426,11 @@
                     hemStarted.Set();
                     // запускаем две асинхронные операции
                     var result = PromiseHelper
-                        .Sleep(10000, "HEM ENABLED!!!")
-                        .Then(s => pSurvive.Resolve(false));
+                        .Sleep(100000000, "HEM ENABLED!!!")
+                        .Then(s => {
+                            pSurvive.Resolve(false);
+                            return s;
+                        });
 
                     result
                         .Cancelled(() => pSurvive.Resolve(true));