Skip to content

Commit de2f660

Browse files
Skip tests on Android
1 parent fa62907 commit de2f660

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

test/Sentry.Extensions.Logging.Tests/SentryHttpMessageHandlerBuilderFilterTests.cs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ namespace Sentry.Extensions.Logging.Tests;
44

55
public class SentryHttpMessageHandlerBuilderFilterTests
66
{
7-
[Fact]
7+
[SkippableFact]
88
public void Configure_HandlerEnabled_ShouldAddSentryHttpMessageHandler()
99
{
10+
#if __ANDROID__
11+
Skip.If(true, "Can't create proxies for classes without parameterless constructors on Android");
12+
#endif
13+
1014
// Arrange
1115
var hub = Substitute.For<IHub>();
1216
SentryClientExtensions.SentryOptionsForTestingOnly = new SentryOptions { DisableSentryHttpMessageHandler = false };
@@ -24,9 +28,13 @@ public void Configure_HandlerEnabled_ShouldAddSentryHttpMessageHandler()
2428
handlerBuilder.AdditionalHandlers.Should().ContainSingle(h => h is SentryHttpMessageHandler);
2529
}
2630

27-
[Fact]
31+
[SkippableFact]
2832
public void Configure_HandlerDisabled_ShouldNotAddSentryHttpMessageHandler()
2933
{
34+
#if __ANDROID__
35+
Skip.If(true, "Can't create proxies for classes without parameterless constructors on Android");
36+
#endif
37+
3038
// Arrange
3139
var hub = Substitute.For<IHub>();
3240
SentryClientExtensions.SentryOptionsForTestingOnly = new SentryOptions { DisableSentryHttpMessageHandler = true };

0 commit comments

Comments
 (0)