[bcl] Fix a few hardcoded socket ports in tests (#5471)
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Thu, 31 Aug 2017 08:53:35 +0000 (10:53 +0200)
committerGitHub <noreply@github.com>
Thu, 31 Aug 2017 08:53:35 +0000 (10:53 +0200)
commite7a2d94f75e00c1f00ebe8bf02b67df7110a0b9a
tree98d857fc47b22fd971c867eca01cb7bcfded4edc
parent2439f17bef29b0bf5ae4fc81a1e7f96514810ff5
[bcl] Fix a few hardcoded socket ports in tests (#5471)

* [System] Fix a few hardcoded socket ports in tests

Those could've shown up as "address already in use" in CI.

* [System.Runtime.Remoting] Fix a few hardcoded socket ports in tests

Those could've shown up as "address already in use" in CI.

Additionally remove a copy of RemotingServicesTest.cs from corlib
which also exists in System.Runtime.Remoting in updated form.

* [System.ServiceModel] Fix a few hardcoded socket ports in tests

Those could've shown up as "address already in use" in CI.

* [System.Net.Http] Fix a few hardcoded socket ports in tests

Those could've shown up as "address already in use" in CI.

The additional "keep-alive" header in Send_Complete_NoContent() and
Send_Transfer_Encoding_Chunked() is because we were using the same
port for all tests before so other tests would clear the header.
This doesn't happen now that we use distinct test ports.

* [System.ServiceModel.Web] Fix a few hardcoded socket ports in tests

Those could've shown up as "address already in use" in CI.
19 files changed:
mcs/class/System.Net.Http/System.Net.Http_test.dll.sources
mcs/class/System.Net.Http/Test/System.Net.Http/HttpClientTest.cs
mcs/class/System.Runtime.Remoting/System.Runtime.Remoting_test.dll.sources
mcs/class/System.Runtime.Remoting/Test/ActivationTests.cs
mcs/class/System.Runtime.Remoting/Test/GenericTest.cs
mcs/class/System.Runtime.Remoting/Test/HttpBugTests.cs
mcs/class/System.Runtime.Remoting/Test/RemotingServicesTest.cs
mcs/class/System.Runtime.Remoting/Test/System.Runtime.Remoting.Channels.Tcp/TcpChannelTest.cs
mcs/class/System.ServiceModel.Web/Test/System.ServiceModel.Activation/WebScriptServiceHostFactoryTest.cs
mcs/class/System.ServiceModel/System.ServiceModel.PeerResolvers/CustomPeerResolverService.cs
mcs/class/System.ServiceModel/Test/FeatureBased/TestFixtureBase.cs
mcs/class/System.ServiceModel/Test/System.ServiceModel.PeerResolvers/CustomPeerResolverServiceTest.cs
mcs/class/System/Test/System.Net.Sockets/SocketTest.cs
mcs/class/System/Test/System.Net.Sockets/TcpClientTest.cs
mcs/class/System/Test/System.Net.Sockets/UdpClientTest.cs
mcs/class/System/Test/System.Net/HttpListenerPrefixCollectionTest.cs
mcs/class/corlib/Test/System.Runtime.Remoting/RemotingServicesTest.cs [deleted file]
mcs/class/corlib/testing_aot_full_corlib_test.dll.exclude.sources
mcs/class/test-helpers/NetworkHelpers.cs