Commit Graph
63 Commits
Author SHA1 Message Date
Rodrigo Kumpera 9015a7f609 Improve the reliability and error reporting of the TPL Dataflow test suite. 2013-05-30 15:43:25 -04:00
Petr Onderka aa8665f1a2 Fixed race condition in race condition test 2012-08-20 00:09:21 +02:00
Petr Onderka 96b8ce459b Correctly implemented Choose() 2012-08-20 00:08:33 +02:00
Petr Onderka 2ca9ed1f9b Fixed completion of PropagatorWrapperBlock 2012-08-20 00:08:01 +02:00
Petr Onderka 53cfcfa518 Some tests need more time 2012-08-20 00:07:14 +02:00
Petr Onderka 3233cb6b67 Work around issue with old NUnit and comparing collections 2012-08-20 00:06:57 +02:00
Petr Onderka 157a7e48da Don't cancel unstarted Tasks on cancellation
Unstarted Tasks can't be cancelled, because they have to
correctly modify degreeOfParallelism.
2012-08-20 00:06:42 +02:00
Petr Onderka 3d1fdc2b77 Fixed unit test to work with old NUnit 2012-08-20 00:06:26 +02:00
Petr Onderka 6033bab1ac Handle consumeToAccept with MaxNumberOfGroups correctly 2012-08-20 00:06:11 +02:00
Petr Onderka a05897bdda Store multiple exceptions in Completion correctly 2012-08-20 00:05:55 +02:00
Petr Onderka c0eae466df Added test for MaxMessages with BroadcastBlock 2012-08-20 00:05:39 +02:00
Petr Onderka 8e6723b148 consumeToAccept shouldn't reserve 2012-08-20 00:05:24 +02:00
Petr Onderka a51689aeaa Make sure cancellation behaves the same as faulting wrt output queue 2012-08-20 00:05:08 +02:00
Petr Onderka c5a7eec7c0 Implemented execution block ctors for async actions 2012-08-20 00:04:52 +02:00
Petr Onderka f5aa9b18cc Implemented NullTarget() 2012-08-20 00:04:35 +02:00
Petr Onderka 83ee01d56b Fixed race condition in OfferMessage() 2012-08-20 00:03:47 +02:00
Petr Onderka bb1d630ad0 Forgot to use AssertEx 2012-08-20 00:03:15 +02:00
Petr Onderka 956fe3e589 Check for null target in ConsumeMessage()
Previously, the correct exception was thrown later on,
but only by accident.
2012-08-20 00:02:27 +02:00
Petr Onderka b42d1d23cc Only reserved can be consumed after fault 2012-08-20 00:02:11 +02:00
Petr Onderka d8a84d05c7 Implemented OutputAvailableAsync() 2012-08-20 00:01:21 +02:00
Petr Onderka 6dc84bab1d Implemented LinkTo() with predicate 2012-08-20 00:00:32 +02:00
Petr Onderka e09671aeec Fixed sending from WriteOnceBlock 2012-08-20 00:00:17 +02:00
Petr Onderka 1b75b734b5 Fixed sending from BroadcastBlock 2012-08-20 00:00:02 +02:00
Petr Onderka 0488ecec3c Corrected Receive() and ReceiveAsync() 2012-08-19 23:59:47 +02:00
Petr Onderka efa8ac1e1b Valid header can't have id 0 2012-08-19 23:59:32 +02:00
Petr Onderka 460864bd02 Implemented SendAsync() 2012-08-19 23:59:17 +02:00
Petr Onderka 37cdae3d3e Release postponed messages after Complete() 2012-08-19 23:59:01 +02:00
Petr Onderka f0513a7ba7 Handle completion correctly in Receive() 2012-08-19 23:58:31 +02:00
Petr Onderka 2742f4fdc8 Verify arguments in public methods 2012-08-19 23:57:39 +02:00
Petr Onderka 1789aca42b Negative header ids should be valid 2012-08-19 23:56:47 +02:00
Petr Onderka c005de6f4f Made tests compatible with NUnit 2.4 2012-08-19 23:56:23 +02:00
Petr Onderka 7a0de2d404 Added support for MaxNumberOfGroups 2012-08-19 23:55:25 +02:00
Petr Onderka f9d6665916 Fixed completion of JoinTargets 2012-08-19 23:55:14 +02:00
Petr Onderka 70eb1606a6 No need to use .Net 4.5-specific methods 2012-08-19 23:55:04 +02:00
Petr Onderka 24f9b377ba Fixed tests, so that they work under MS .Net
Also a small change in ToString().
2012-08-19 23:54:43 +02:00
Petr Onderka 32564dbdff Fixed bug in unit test 2012-08-19 23:54:32 +02:00
Petr Onderka 70dd858e42 Fixed non-greedy blocks with BoundedCapacity 2012-08-19 23:44:06 +02:00
Petr Onderka 8f537c6c43 Test TriggerBatch() when the block is empty 2012-08-19 23:44:04 +02:00
Petr Onderka c5f365a7d7 Added support for Greedy 2012-08-19 23:42:50 +02:00
Petr Onderka f2a8e7e1eb Added support for PropagateCompletion 2012-08-19 23:42:49 +02:00
Petr Onderka b7d32ce8b3 Added support for MaxMessages 2012-08-19 23:42:47 +02:00
Petr Onderka 8569907ddb Fixed bug in unit test 2012-08-19 23:42:46 +02:00
Petr Onderka 2f92f56945 Added support for BoundedCapacity 2012-08-19 23:42:45 +02:00
Petr Onderka d7dece95b4 Corrected sending messages to targets in most blocks 2012-08-19 23:42:10 +02:00
Petr Onderka b36e2b3f96 Added support for TaskScheduler 2012-08-19 23:42:08 +02:00
Petr Onderka 746c068fd0 Corrected handling of exceptions
Also fixed some race conditions.
2012-08-19 23:40:40 +02:00
Petr Onderka 42aecba40f Exceptions during execution cause the block to fault 2012-08-19 23:40:09 +02:00
Petr Onderka c463b7bfa5 Fixed MaxDegreeOfParallelism, added support for MaxMessagesPerTask 2012-08-19 23:40:09 +02:00
Petr Onderka f28b290236 Added support for cancallation to all blocks 2012-08-19 23:40:08 +02:00
Petr Onderka 53859bdc71 Added support for NameFormat to all blocks 2012-08-19 23:40:07 +02:00