Skip to content

Commit d40c030

Browse files
Testing a theory...
1 parent 5b7fbc3 commit d40c030

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

integration-test/net9-maui/MauiProgram.cs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,16 @@ public static MauiApp CreateMauiApp()
2121
options.SendClientReports = false;
2222
options.AutoSessionTracking = false;
2323

24-
options.SetBeforeBreadcrumb((breadcrumb, hint) =>
24+
// Only check breadcrumbs for non-crash tests...
25+
var testArg = System.Environment.GetEnvironmentVariable("SENTRY_TEST_ARG");
26+
if (!Enum.TryParse<CrashType>(testArg, ignoreCase: true, out var crashType))
2527
{
26-
App.ReceiveSystemBreadcrumb(breadcrumb);
27-
return breadcrumb;
28-
});
28+
options.SetBeforeBreadcrumb((breadcrumb, hint) =>
29+
{
30+
App.ReceiveSystemBreadcrumb(breadcrumb);
31+
return breadcrumb;
32+
});
33+
}
2934
})
3035
.ConfigureFonts(fonts =>
3136
{

0 commit comments

Comments
 (0)