File tree 1 file changed +14
-9
lines changed
1 file changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -665,31 +665,36 @@ void main() {
665
665
test (
666
666
'should add DartExceptionTypeIdentifier and FlutterExceptionTypeIdentifier by default' ,
667
667
() async {
668
- await SentryFlutter .init ((options) {
669
- options.dsn = fakeDsn;
670
- options.automatedTestMode = true ;
671
- });
672
-
673
- final options = HubAdapter ().options;
668
+ SentryOptions ? actualOptions = null ;
669
+ await SentryFlutter .init (
670
+ (options) {
671
+ options.dsn = fakeDsn;
672
+ options.automatedTestMode = true ;
673
+ actualOptions = options;
674
+ },
675
+ appRunner: appRunner,
676
+ );
674
677
675
- expect (options .exceptionTypeIdentifiers.length, 2 );
678
+ expect (actualOptions ! .exceptionTypeIdentifiers.length, 2 );
676
679
// Flutter identifier should be first as it's more specific
677
680
expect (
678
- options .exceptionTypeIdentifiers.first,
681
+ actualOptions ! .exceptionTypeIdentifiers.first,
679
682
isA <CachingExceptionTypeIdentifier >().having (
680
683
(c) => c.identifier,
681
684
'wrapped identifier' ,
682
685
isA <FlutterExceptionTypeIdentifier >(),
683
686
),
684
687
);
685
688
expect (
686
- options .exceptionTypeIdentifiers[1 ],
689
+ actualOptions ! .exceptionTypeIdentifiers[1 ],
687
690
isA <CachingExceptionTypeIdentifier >().having (
688
691
(c) => c.identifier,
689
692
'wrapped identifier' ,
690
693
isA <DartExceptionTypeIdentifier >(),
691
694
),
692
695
);
696
+
697
+ await Sentry .close ();
693
698
});
694
699
}
695
700
You can’t perform that action at this time.
0 commit comments