[System.ServiceModel] Speed up Bug652331_2Test test execution.
authorJonathan Pryor <jonpryor@vt.edu>
Fri, 20 Jan 2012 03:33:35 +0000 (22:33 -0500)
committerJonathan Pryor <jonpryor@vt.edu>
Fri, 20 Jan 2012 05:18:53 +0000 (00:18 -0500)
commit5a6f9b7e521fcba3e9ed9f2b4032805503be84bb
treedff5594cf177377f6b558ce2e799fbe0852dcf74
parentb42fb3a0fa6a428a78e3d4ee88847d7afd870502
[System.ServiceModel] Speed up Bug652331_2Test test execution.

For reasons I currently can't explain, the Service1Client test type
appears to support having only one async operation "in flight" at a
time. As a result of this, calling multiple Async methods on the
Service1Client instance, as was done previously, would result in not
all of the event handlers being invoked, and the test timing out
after 60s instead of exiting quickly because all event handlers had
been raised.

I don't understand enough of WCF & this code to say why Service1Client
can have only one async operation in progress at once, but making this
change so that each async operation operates on a separate instance
speeds up the Bug652331_2Test execution from 60s to 5s.
mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/Bug652331_2Test.cs