Skip to content

Conversation

@jonathanpeppers
Copy link
Member

This test is flaky, but it currently has a terrible error message as "1":

Mono.Android.NET_Tests, Xamarin.Android.NetTests.AndroidMessageHandlerIntegrationTests.HttpClientIntegrationTestBase.CancelRequestViaProxy / Debug
Error message
   1
Stack trace
   at Xamarin.Android.NetTests.HttpClientIntegrationTestBase.CancelRequestViaProxy() in /Users/runner/work/1/s/tests/Mono.Android-Tests/Mono.Android-Tests/Xamarin.Android.Net/HttpClientIntegrationTests.cs:line 166
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Let's improve the assertion message, in general, and that might help diagnose the flakiness in the future.

This shouldn't alter the behavior of the test, just the assertion message.

This test is flaky, but it currently has a terrible error message as "1":

    Mono.Android.NET_Tests, Xamarin.Android.NetTests.AndroidMessageHandlerIntegrationTests.HttpClientIntegrationTestBase.CancelRequestViaProxy / Debug
    Error message
       1
    Stack trace
       at Xamarin.Android.NetTests.HttpClientIntegrationTestBase.CancelRequestViaProxy() in /Users/runner/work/1/s/tests/Mono.Android-Tests/Mono.Android-Tests/Xamarin.Android.Net/HttpClientIntegrationTests.cs:line 166
       at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
       at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Let's improve the assertion message, in general, and that might help
diagnose the flakiness in the future.

This shouldn't alter the behavior of the test, just the assertion message.
@jonathanpeppers jonathanpeppers marked this pull request as ready for review January 12, 2026 15:18
@jonathanpeppers jonathanpeppers merged commit 7899160 into main Jan 12, 2026
59 checks passed
@jonathanpeppers jonathanpeppers deleted the dev/peppers/CancelRequestViaProxy branch January 12, 2026 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants