Allow at max one Remove operation to fail in tests.
authorJérémie Laval <jeremie.laval@gmail.com>
Fri, 27 Aug 2010 14:01:08 +0000 (15:01 +0100)
committerJérémie Laval <jeremie.laval@gmail.com>
Fri, 27 Aug 2010 14:03:39 +0000 (15:03 +0100)
commit483b2986db9e24101df4f433dd647fe91b2ed812
treebb47b7d12284020b854e3870a52b12fb8647c988
parent0b053ef9fb2f2637e528b70be1a30f585c574ac9
Allow at max one Remove operation to fail in tests.

Some concurrent collections don't necessarily guarantee that a call to Dequeue/Pop/equivalent will succeed even in the case there are elements in the collection. When one of such operation fail in test, retry it immediately to check for that sort of cases.
mcs/class/corlib/Test/System.Collections.Concurrent/CollectionStressTestHelper.cs