diff options
author | Alexander Köplinger <alex.koeplinger@outlook.com> | 2016-09-05 19:29:21 +0300 |
---|---|---|
committer | Alexander Köplinger <alex.koeplinger@outlook.com> | 2016-10-29 15:09:37 +0300 |
commit | 40c3407ab94ccaf31a9b57ee106de2de61604ee3 (patch) | |
tree | 0c193e4926a36f0b43c61adfc4e22002ca63b8ec /mcs/class/System.Runtime.Remoting/Test | |
parent | 77bcadb7dd26909ca137c117627a47769b27e584 (diff) |
[System.Runtime.Remoting] Fix double call to ChannelServices.UnregisterChannel
It is already called in TestFixtureTearDown, and calling it twice results in an exception in UnregisterChannel
the second time because the channel is no longer registered.
Diffstat (limited to 'mcs/class/System.Runtime.Remoting/Test')
-rw-r--r-- | mcs/class/System.Runtime.Remoting/Test/HttpBugTests.cs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/mcs/class/System.Runtime.Remoting/Test/HttpBugTests.cs b/mcs/class/System.Runtime.Remoting/Test/HttpBugTests.cs index 68930b0d640..c809f96c940 100644 --- a/mcs/class/System.Runtime.Remoting/Test/HttpBugTests.cs +++ b/mcs/class/System.Runtime.Remoting/Test/HttpBugTests.cs @@ -169,16 +169,12 @@ namespace MonoTests.Remoting.Http public void Main () { channel = new HttpChannel (0); - try { ChannelServices.RegisterChannel (channel); MarshalByRefObject obj = (MarshalByRefObject) RemotingServices.Connect ( typeof (IFactorial), "http://localhost:60000/MyEndPoint"); IFactorial cal = (IFactorial) obj; - Assert.AreEqual (cal.CalculateFactorial (4), 24); - } finally { - ChannelServices.UnregisterChannel (channel); - } + Assert.AreEqual (cal.CalculateFactorial (4), 24); } [TestFixtureSetUp] |