Skip to content

Commit 50e5232

Browse files
Skip flaky test (EventPipeSession_ReceivesExpectedCLREvents) (#3949)
1 parent 337faa7 commit 50e5232

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/Sentry.Profiling.Tests/SamplingTransactionProfilerTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,9 @@ public async Task Profiler_AfterTimeout_Stops()
184184
[SkippableFact]
185185
public async Task EventPipeSession_ReceivesExpectedCLREvents()
186186
{
187-
SampleProfilerSession? session = null;
188-
SkipIfFailsInCI(() => session = SampleProfilerSession.StartNew(_testOutputLogger));
187+
Skip.If(TestEnvironment.IsGitHubActions, "Flaky on CI");
188+
189+
var session = SampleProfilerSession.StartNew(_testOutputLogger);
189190
using (session)
190191
{
191192
var eventsReceived = new HashSet<string>();
@@ -194,7 +195,6 @@ public async Task EventPipeSession_ReceivesExpectedCLREvents()
194195
var loadedMethods = new HashSet<string>();
195196
session!.EventSource.Clr.MethodLoadVerbose += (MethodLoadUnloadVerboseTraceData ev) => loadedMethods.Add(ev.MethodName);
196197

197-
198198
await session.WaitForFirstEventAsync(CancellationToken.None);
199199
var limitMs = 50;
200200
var sut = new SamplingTransactionProfiler(_testSentryOptions, session, limitMs, CancellationToken.None);

0 commit comments

Comments
 (0)