From 4333bb6d6b2c4811e6d49933e463b40ea98e7245 Mon Sep 17 00:00:00 2001 From: James Crosswell Date: Thu, 3 Oct 2024 19:18:23 +1300 Subject: [PATCH] Disabled flaky tests for android --- test/Sentry.Tests/HubTests.cs | 6 +++++- test/Sentry.Tests/SentrySdkTests.cs | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/test/Sentry.Tests/HubTests.cs b/test/Sentry.Tests/HubTests.cs index 38d5998991..f58992d220 100644 --- a/test/Sentry.Tests/HubTests.cs +++ b/test/Sentry.Tests/HubTests.cs @@ -1131,9 +1131,13 @@ public async Task CaptureTransaction_WithSyncThrowingTransactionProfiler_DoesntS transport.GetSentEnvelopes().Should().BeEmpty(); } - [Fact] + [SkippableFact] public async Task CaptureTransaction_WithAsyncThrowingTransactionProfiler_SendsTransactionWithoutProfile() { +#if __ANDROID__ + Skip.If(true, "Flaky on Android"); +#endif + // Arrange var transport = new FakeTransport(); var logger = new TestOutputDiagnosticLogger(_output); diff --git a/test/Sentry.Tests/SentrySdkTests.cs b/test/Sentry.Tests/SentrySdkTests.cs index b8e5a329f6..4f8a45fec6 100644 --- a/test/Sentry.Tests/SentrySdkTests.cs +++ b/test/Sentry.Tests/SentrySdkTests.cs @@ -424,9 +424,13 @@ public void ConfigureScope_Sync_CallbackNeverInvoked() Assert.False(invoked); } - [Fact] + [SkippableFact] public async Task ConfigureScope_OnTask_PropagatedToCaller() { +#if __ANDROID__ + Skip.If(true, "Flaky on Android"); +#endif + const string expected = "test"; using var _ = SentrySdk.Init(o => {