From 47da36e0818a213f6a3572b0507c4ec1f98d58b7 Mon Sep 17 00:00:00 2001 From: Peter Collins Date: Fri, 14 Jun 2024 15:01:14 -0400 Subject: [PATCH] [Mono.Android-Tests] Fix repo URL in redirect tests 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. --- .../Xamarin.Android.Net/AndroidClientHandlerTests.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/Mono.Android-Tests/Xamarin.Android.Net/AndroidClientHandlerTests.cs b/tests/Mono.Android-Tests/Xamarin.Android.Net/AndroidClientHandlerTests.cs index 061319d86d4..a0dda8c2367 100644 --- a/tests/Mono.Android-Tests/Xamarin.Android.Net/AndroidClientHandlerTests.cs +++ b/tests/Mono.Android-Tests/Xamarin.Android.Net/AndroidClientHandlerTests.cs @@ -248,8 +248,8 @@ public void Property_Timeout_Works() [Test] public void Redirect_Without_Protocol_Works() { - var requestURI = new Uri ("https://httpbin.org/redirect-to?url=https://github.com/xamarin/xamarin-android"); - var redirectedURI = new Uri ("https://github.com/xamarin/xamarin-android"); + var requestURI = new Uri ("https://httpbin.org/redirect-to?url=https://github.com/dotnet/android"); + var redirectedURI = new Uri ("https://github.com/dotnet/android"); using (var c = new HttpClient (CreateHandler ())) { var tr = ConnectIgnoreFailure (() => c.GetAsync (requestURI), out bool connectionFailed); if (connectionFailed) @@ -267,8 +267,8 @@ public void Redirect_Without_Protocol_Works() [Test] public void Redirect_POST_With_Content_Works () { - var requestURI = new Uri ("https://httpbin.org/redirect-to?url=https://github.com/xamarin/xamarin-android"); - var redirectedURI = new Uri ("https://github.com/xamarin/xamarin-android"); + var requestURI = new Uri ("https://httpbin.org/redirect-to?url=https://github.com/dotnet/android"); + var redirectedURI = new Uri ("https://github.com/dotnet/android"); using (var c = new HttpClient (CreateHandler ())) { var request = new HttpRequestMessage (HttpMethod.Post, requestURI); request.Content = new StringContent("{}", Encoding.UTF8, "application/json");