File tree Expand file tree Collapse file tree 4 files changed +6
-7
lines changed Expand file tree Collapse file tree 4 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ Future<T> asyncGuard<T>(
138
138
}
139
139
}
140
140
141
- runZoned <void >(() async {
141
+ runZonedGuarded <void >(() async {
142
142
try {
143
143
final T result = await fn ();
144
144
if (! completer.isCompleted) {
@@ -150,7 +150,7 @@ Future<T> asyncGuard<T>(
150
150
// ignore: avoid_catches_without_on_clauses, forwards to Future
151
151
handleError (e, s);
152
152
}
153
- }, onError : (Object e, StackTrace s) {
153
+ }, (Object e, StackTrace s) {
154
154
handleError (e, s);
155
155
});
156
156
Original file line number Diff line number Diff line change @@ -24,4 +24,3 @@ dev_dependencies:
24
24
file_testing : 3.0.0
25
25
lints : ^2.0.0
26
26
test : ^1.16.0
27
- test_api : ^0.4.13
Original file line number Diff line number Diff line change @@ -10,12 +10,12 @@ import 'package:flutter_migrate/src/base/file_system.dart';
10
10
import 'package:flutter_migrate/src/base/io.dart' ;
11
11
import 'package:meta/meta.dart' ;
12
12
import 'package:path/path.dart' as path; // flutter_ignore: package_path_import
13
- import 'package:test_api/test_api .dart' as test_package show test;
14
- import 'package:test_api/test_api .dart' hide test;
13
+ import 'package:test/test .dart' as test_package show test;
14
+ import 'package:test/test .dart' hide test;
15
15
16
16
import 'test_utils.dart' ;
17
17
18
- export 'package:test_api/test_api .dart' hide isInstanceOf, test;
18
+ export 'package:test/test .dart' hide isInstanceOf, test;
19
19
20
20
bool tryToDelete (FileSystemEntity fileEntity) {
21
21
// This should not be necessary, but it turns out that
Original file line number Diff line number Diff line change 5
5
import 'package:args/command_runner.dart' ;
6
6
import 'package:flutter_migrate/src/base/command.dart' ;
7
7
8
- export 'package:test_api/test_api .dart' hide isInstanceOf, test;
8
+ export 'package:test/test .dart' hide isInstanceOf, test;
9
9
10
10
CommandRunner <void > createTestCommandRunner ([MigrateCommand ? command]) {
11
11
final CommandRunner <void > runner = TestCommandRunner ();
You can’t perform that action at this time.
0 commit comments