diff Implab.Test/AsyncTests.cs @ 17:7cd4a843b4e4 promises

Improved worker pool
author cin
date Fri, 08 Nov 2013 01:25:42 +0400
parents 5a4b735ba669
children e3935fdf59a2
line wrap: on
line diff
--- a/Implab.Test/AsyncTests.cs	Thu Nov 07 20:20:26 2013 +0400
+++ b/Implab.Test/AsyncTests.cs	Fri Nov 08 01:25:42 2013 +0400
@@ -99,7 +99,7 @@
 
         [TestMethod]
         public void WorkerPoolSizeTest() {
-            var pool = new WorkerPool(5, 10);
+            var pool = new WorkerPool(5, 10, 0);
 
             Assert.AreEqual(5, pool.ThreadCount);
 
@@ -119,7 +119,7 @@
 
         [TestMethod]
         public void WorkerPoolCorrectTest() {
-            var pool = new WorkerPool();
+            var pool = new WorkerPool(0,1000,100);
 
             int iterations = 1000;
             int pending = iterations;
@@ -244,7 +244,7 @@
         [TestMethod]
         public void ChainedMapTest() {
 
-            using (var pool = new WorkerPool(1,10)) {
+            using (var pool = new WorkerPool(8,100,0)) {
                 int count = 10000;
 
                 double[] args = new double[count];