diff --git a/tests/monotouch-test/System.Net.Http/MessageHandlers.cs b/tests/monotouch-test/System.Net.Http/MessageHandlers.cs index 7ed67ee7bfa0..f6ad21c771eb 100644 --- a/tests/monotouch-test/System.Net.Http/MessageHandlers.cs +++ b/tests/monotouch-test/System.Net.Http/MessageHandlers.cs @@ -149,10 +149,13 @@ public void RedirectionWithAuthorizationHeaders (Type handlerType) } }, () => done); - Assert.IsTrue (done, "Request timedout."); - Assert.IsTrue (containsHeaders, "Request did not reach final destination."); - Assert.IsFalse (containsAuthorizarion, $"Authorization header did reach the final destination. {json}"); - Assert.IsNull (ex, $"Exception {ex} for {json}"); + if (!done) { // timeouts happen in the bost due to dns issues, connection issues etc.. we do not want to fail + Assert.Inconclusive ("Request timedout."); + } else { + Assert.IsTrue (containsHeaders, "Request did not reach final destination."); + Assert.IsFalse (containsAuthorizarion, $"Authorization header did reach the final destination. {json}"); + Assert.IsNull (ex, $"Exception {ex} for {json}"); + } } } }