[System.ServiceModel] Fix flaky Bug652331_2 test
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Wed, 5 Aug 2015 18:09:32 +0000 (20:09 +0200)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Wed, 5 Aug 2015 18:09:32 +0000 (20:09 +0200)
commit66cf5d6247b937d976f0174e73ce431c08264488
treeadf265d80a77823f48eeaedbc5c8c181c672700e
parentb4357e8f6ea2cc3acafbaaeecb9169af82512495
[System.ServiceModel] Fix flaky Bug652331_2 test

The test sometimes failed on Jenkins with the timeout assert. Running only this single test locally
with `make check TESTNAME=System.ServiceModel.Dispatcher.Bug652331Test.Bug652331_2` however reproduced
this almost every single time.

It seems that WCF takes a bit to initialize until it accepts connections, so putting a little sleep
fixed this for me locally and running it in a loop for half an hour didn't assert even once.
mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/Bug652331Test.cs