Skip to content

Commit 1a536c7

Browse files
chore: Skip flaky Elapsed_IsValid test on iOS (#4511)
1 parent 4a2bf5f commit 1a536c7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/Sentry.Tests/Internals/SentryStopwatchTests.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,13 @@ public void CurrentDateTimeOffset_IsValid()
2424
current.Should().BeCloseTo(DateTimeOffset.UtcNow, TestPrecision);
2525
}
2626

27-
[Fact]
27+
[SkippableFact]
2828
public void Elapsed_IsValid()
2929
{
30+
#if IOS
31+
Skip.If(TestEnvironment.IsGitHubActions, "Flaky on iOS in CI.");
32+
#endif
33+
3034
var sleepTime = TimeSpan.FromMilliseconds(100);
3135

3236
var sw = SentryStopwatch.StartNew();

0 commit comments

Comments
 (0)