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>(
138138 }
139139 }
140140
141- runZoned <void >(() async {
141+ runZonedGuarded <void >(() async {
142142 try {
143143 final T result = await fn ();
144144 if (! completer.isCompleted) {
@@ -150,7 +150,7 @@ Future<T> asyncGuard<T>(
150150 // ignore: avoid_catches_without_on_clauses, forwards to Future
151151 handleError (e, s);
152152 }
153- }, onError : (Object e, StackTrace s) {
153+ }, (Object e, StackTrace s) {
154154 handleError (e, s);
155155 });
156156
Original file line number Diff line number Diff line change @@ -24,4 +24,3 @@ dev_dependencies:
2424 file_testing : 3.0.0
2525 lints : ^2.0.0
2626 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';
1010import 'package:flutter_migrate/src/base/io.dart' ;
1111import 'package:meta/meta.dart' ;
1212import '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;
1515
1616import 'test_utils.dart' ;
1717
18- export 'package:test_api/test_api .dart' hide isInstanceOf, test;
18+ export 'package:test/test .dart' hide isInstanceOf, test;
1919
2020bool tryToDelete (FileSystemEntity fileEntity) {
2121 // This should not be necessary, but it turns out that
Original file line number Diff line number Diff line change 55import 'package:args/command_runner.dart' ;
66import 'package:flutter_migrate/src/base/command.dart' ;
77
8- export 'package:test_api/test_api .dart' hide isInstanceOf, test;
8+ export 'package:test/test .dart' hide isInstanceOf, test;
99
1010CommandRunner <void > createTestCommandRunner ([MigrateCommand ? command]) {
1111 final CommandRunner <void > runner = TestCommandRunner ();
You can’t perform that action at this time.
0 commit comments