Skip to content

Commit 16fa8dc

Browse files
authored
test: skip profiling startup timeout failures in CI (#4144)
1 parent bb765ee commit 16fa8dc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/Sentry.Profiling.Tests/SamplingTransactionProfilerTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,10 @@ async Task VerifyAsync(HttpRequestMessage message)
273273
{
274274
using var hub = new Hub(options);
275275

276+
var factory = (options.TransactionProfilerFactory as SamplingTransactionProfilerFactory)!;
277+
Skip.If(TestEnvironment.IsGitHubActions && factory.StartupTimedOut, "Session sometimes takes too long to start in CI.");
278+
Assert.False(factory.StartupTimedOut);
279+
276280
var clock = SentryStopwatch.StartNew();
277281
var tx = hub.StartTransaction("name", "op");
278282
RunForMs(RuntimeMs);

0 commit comments

Comments
 (0)