diff options
author | Alexander Köplinger <alex.koeplinger@outlook.com> | 2019-05-23 15:12:14 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-23 15:12:14 +0300 |
commit | 9606a8f18071ebc56211434972fe024a819a118c (patch) | |
tree | 27af6aa73fb982291020dae6d05d84a71237281a /mcs/class/System.Net.Http | |
parent | d96fa3ab317ec0ebf5fa26d0efab24c3142b8e29 (diff) |
[bcl] Remove usages of mono-project.com/go-mono.com/google.com in tests (#14586)
Use example.com and example.org instead.
Fixes https://github.com/mono/mono/issues/14585
Note that not all of the things I replaced make an actual network request but I thought it'd be nice to be consistent.
Diffstat (limited to 'mcs/class/System.Net.Http')
3 files changed, 7 insertions, 7 deletions
diff --git a/mcs/class/System.Net.Http/Test/System.Net.Http/HttpClientHandlerTest.cs b/mcs/class/System.Net.Http/Test/System.Net.Http/HttpClientHandlerTest.cs index c4e715ee793..ef7b8b58026 100644 --- a/mcs/class/System.Net.Http/Test/System.Net.Http/HttpClientHandlerTest.cs +++ b/mcs/class/System.Net.Http/Test/System.Net.Http/HttpClientHandlerTest.cs @@ -139,7 +139,7 @@ namespace MonoTests.System.Net.Http h.Dispose (); var c = new HttpClient (h); try { - c.GetAsync ("http://google.com").Wait (); + c.GetAsync ("http://www.example.com").Wait (); Assert.Fail ("#1"); } catch (AggregateException e) { Assert.IsTrue (e.InnerException is ObjectDisposedException, "#2"); diff --git a/mcs/class/System.Net.Http/Test/System.Net.Http/HttpClientTest.cs b/mcs/class/System.Net.Http/Test/System.Net.Http/HttpClientTest.cs index 8853242a6dd..445ac9e2f27 100644 --- a/mcs/class/System.Net.Http/Test/System.Net.Http/HttpClientTest.cs +++ b/mcs/class/System.Net.Http/Test/System.Net.Http/HttpClientTest.cs @@ -274,7 +274,7 @@ namespace MonoTests.System.Net.Http handler.AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate; var httpClient = new HttpClient (handler) { - BaseAddress = new Uri ("https://google.com"), + BaseAddress = new Uri ("https://www.example.com"), Timeout = TimeSpan.FromMilliseconds (1) }; @@ -349,7 +349,7 @@ namespace MonoTests.System.Net.Http request.UseProxy = false; var client = new HttpClient (request); - Assert.IsTrue (client.GetAsync ("http://google.com").Wait (5000), "needs internet access"); + Assert.IsTrue (client.GetAsync ("http://www.example.com").Wait (5000), "needs internet access"); } finally { WebRequest.DefaultWebProxy = pp; } @@ -361,7 +361,7 @@ namespace MonoTests.System.Net.Http var mh = new HttpMessageHandlerMock (); var client = new HttpClient (mh); - client.BaseAddress = new Uri ("http://xamarin.com"); + client.BaseAddress = new Uri ("http://www.example.com"); var request = new HttpRequestMessage (); var response = new HttpResponseMessage (); @@ -399,9 +399,9 @@ namespace MonoTests.System.Net.Http var mh = new HttpMessageHandlerMock (); var client = new HttpClient (mh); - client.DefaultRequestHeaders.Referrer = new Uri ("http://google.com"); + client.DefaultRequestHeaders.Referrer = new Uri ("http://www.example.com"); - var request = new HttpRequestMessage (HttpMethod.Get, "http://xamarin.com"); + var request = new HttpRequestMessage (HttpMethod.Get, "http://www.example.org"); var response = new HttpResponseMessage (); mh.OnSend = l => { diff --git a/mcs/class/System.Net.Http/Test/System.Net.Http/HttpResponseMessageTest.cs b/mcs/class/System.Net.Http/Test/System.Net.Http/HttpResponseMessageTest.cs index 64c87bfbd2f..0ed45c14c6e 100644 --- a/mcs/class/System.Net.Http/Test/System.Net.Http/HttpResponseMessageTest.cs +++ b/mcs/class/System.Net.Http/Test/System.Net.Http/HttpResponseMessageTest.cs @@ -439,7 +439,7 @@ namespace MonoTests.System.Net.Http } try { - headers.Add ("location", new[] { "google.com", "xamarin.com" }); + headers.Add ("location", new[] { "example.com", "example.org" }); Assert.Fail ("#7a"); } catch (FormatException) { } |