Skip to content

Commit 75e5599

Browse files
authored
[Mono.Android-Tests] Fix repo URL in redirect tests (#9035)
A handful of tests started failing after the org move: Xamarin.Android.NetTests.AndroidHandlerTestBase.Redirect_POST_With_Content_Works Invalid redirected URI Expected: https://github.com/xamarin/xamarin-android But was: https://github.com/dotnet/android Fix these by using the new repo URL.
1 parent 40f07f5 commit 75e5599

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/Mono.Android-Tests/Xamarin.Android.Net/AndroidClientHandlerTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,8 @@ public void Property_Timeout_Works()
248248
[Test]
249249
public void Redirect_Without_Protocol_Works()
250250
{
251-
var requestURI = new Uri ("https://httpbin.org/redirect-to?url=https://github.com/xamarin/xamarin-android");
252-
var redirectedURI = new Uri ("https://github.com/xamarin/xamarin-android");
251+
var requestURI = new Uri ("https://httpbin.org/redirect-to?url=https://github.com/dotnet/android");
252+
var redirectedURI = new Uri ("https://github.com/dotnet/android");
253253
using (var c = new HttpClient (CreateHandler ())) {
254254
var tr = ConnectIgnoreFailure (() => c.GetAsync (requestURI), out bool connectionFailed);
255255
if (connectionFailed)
@@ -267,8 +267,8 @@ public void Redirect_Without_Protocol_Works()
267267
[Test]
268268
public void Redirect_POST_With_Content_Works ()
269269
{
270-
var requestURI = new Uri ("https://httpbin.org/redirect-to?url=https://github.com/xamarin/xamarin-android");
271-
var redirectedURI = new Uri ("https://github.com/xamarin/xamarin-android");
270+
var requestURI = new Uri ("https://httpbin.org/redirect-to?url=https://github.com/dotnet/android");
271+
var redirectedURI = new Uri ("https://github.com/dotnet/android");
272272
using (var c = new HttpClient (CreateHandler ())) {
273273
var request = new HttpRequestMessage (HttpMethod.Post, requestURI);
274274
request.Content = new StringContent("{}", Encoding.UTF8, "application/json");

0 commit comments

Comments
 (0)