Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
make it compile on dart2.12/flutter2.0
  • Loading branch information
fzyzcjy committed Mar 5, 2021
commit 697f41ce6867625cf669e6f856f62a5ed9a89f3c
2 changes: 1 addition & 1 deletion flutter/test/default_integrations_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ void main() {

test('nativeSdkIntegration do not throw', () async {
_channel.setMockMethodCallHandler((MethodCall methodCall) async {
throw null;
throw Exception();
});

final integration = NativeSdkIntegration(_channel);
Expand Down
2 changes: 1 addition & 1 deletion flutter/test/file_system_transport_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void main() {

test('FileSystemTransport returns emptyId if channel throws', () async {
_channel.setMockMethodCallHandler((MethodCall methodCall) async {
throw null;
throw Exception();
});

final transport = fixture.getSut(_channel);
Expand Down
2 changes: 2 additions & 0 deletions flutter/test/load_android_image_list_test.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'dart:async';

import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:sentry/sentry.dart';
Expand Down
4 changes: 3 additions & 1 deletion flutter/test/load_contexts_integrations_test.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'dart:async';

import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:sentry_flutter/sentry_flutter.dart';
Expand Down Expand Up @@ -128,7 +130,7 @@ void main() {

test('should not throw on loadContextsIntegration exception', () async {
_channel.setMockMethodCallHandler((MethodCall methodCall) async {
throw null;
throw Exception();
});
final options = SentryFlutterOptions()..dsn = fakeDsn;
final hub = Hub(options);
Expand Down