Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Köplinger <alex.koeplinger@outlook.com>2015-08-05 21:09:32 +0300
committerAlexander Köplinger <alex.koeplinger@outlook.com>2015-08-05 21:09:32 +0300
commit66cf5d6247b937d976f0174e73ce431c08264488 (patch)
treeadf265d80a77823f48eeaedbc5c8c181c672700e /mcs/class/System.ServiceModel/Test
parentb4357e8f6ea2cc3acafbaaeecb9169af82512495 (diff)
[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.
Diffstat (limited to 'mcs/class/System.ServiceModel/Test')
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/Bug652331Test.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/Bug652331Test.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/Bug652331Test.cs
index 70d9c79c624..cdc68486779 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/Bug652331Test.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/Bug652331Test.cs
@@ -57,6 +57,7 @@ namespace MonoTests.System.ServiceModel.Dispatcher
serviceHost.AddServiceEndpoint (typeof (IMetadataExchange), MetadataExchangeBindings.CreateMexHttpBinding (), "mex");
serviceHost.Open ();
+ Thread.Sleep (2000); // let WCF spin up
try {
// client