diff Implab.Test/AsyncTests.cs @ 19:e3935fdf59a2 promises

Promise is rewritten to use interlocked operations instead of locks
author cin
date Sun, 10 Nov 2013 00:21:33 +0400
parents 7cd4a843b4e4
children 1c3b3d518480
line wrap: on
line diff
--- a/Implab.Test/AsyncTests.cs	Fri Nov 08 01:25:42 2013 +0400
+++ b/Implab.Test/AsyncTests.cs	Sun Nov 10 00:21:33 2013 +0400
@@ -14,7 +14,7 @@
             p.Then(x => res = x);
             p.Resolve(100);
 
-            Assert.AreEqual(res, 100);
+            Assert.AreEqual(100, res);
         }
 
         [TestMethod]
@@ -244,7 +244,7 @@
         [TestMethod]
         public void ChainedMapTest() {
 
-            using (var pool = new WorkerPool(8,100,0)) {
+            using (var pool = new WorkerPool(4,4,0)) {
                 int count = 10000;
 
                 double[] args = new double[count];