Skip to content

Commit b1c6040

Browse files
committed
[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 62a33a2 commit b1c6040

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
@@ -246,8 +246,8 @@ public void Property_Timeout_Works()
246246
[Test]
247247
public void Redirect_Without_Protocol_Works()
248248
{
249-
var requestURI = new Uri ("https://httpbin.org/redirect-to?url=https://github.com/xamarin/xamarin-android");
250-
var redirectedURI = new Uri ("https://github.com/xamarin/xamarin-android");
249+
var requestURI = new Uri ("https://httpbin.org/redirect-to?url=https://github.com/dotnet/android");
250+
var redirectedURI = new Uri ("https://github.com/dotnet/android");
251251
using (var c = new HttpClient (CreateHandler ())) {
252252
var tr = ConnectIgnoreFailure (() => c.GetAsync (requestURI), out bool connectionFailed);
253253
if (connectionFailed)
@@ -265,8 +265,8 @@ public void Redirect_Without_Protocol_Works()
265265
[Test]
266266
public void Redirect_POST_With_Content_Works ()
267267
{
268-
var requestURI = new Uri ("https://httpbin.org/redirect-to?url=https://github.com/xamarin/xamarin-android");
269-
var redirectedURI = new Uri ("https://github.com/xamarin/xamarin-android");
268+
var requestURI = new Uri ("https://httpbin.org/redirect-to?url=https://github.com/dotnet/android");
269+
var redirectedURI = new Uri ("https://github.com/dotnet/android");
270270
using (var c = new HttpClient (CreateHandler ())) {
271271
var request = new HttpRequestMessage (HttpMethod.Post, requestURI);
272272
request.Content = new StringContent("{}", Encoding.UTF8, "application/json");

0 commit comments

Comments
 (0)