Skip to content

Commit cbc0df1

Browse files
committed
Test
1 parent d74c044 commit cbc0df1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/Sentry.Tests/SentrySdkTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,9 +1017,9 @@ public void ProcessOnBeforeSend_NativeErrorSuppression(bool suppressNativeErrors
10171017
});
10181018

10191019
var scope = new Scope(options);
1020-
var hub = Substitute.For<IHub>();
1021-
hub.When(h => hub.ConfigureScope(Arg.Any<Action<Scope>>()))
1022-
.Do(callback => callback.Arg<Action<Scope>>().Invoke(scope));
1020+
// `EXC_BAD_ACCESS` must be filtered out early on startup during
1021+
// the Cocoa SDK init before the Hub instance has been created
1022+
var hub = DisabledHub.Instance;
10231023

10241024
var evt = new Sentry.CocoaSdk.SentryEvent();
10251025
var ex = new Sentry.CocoaSdk.SentryException("Not checked", "EXC_BAD_ACCESS");

0 commit comments

Comments
 (0)