Index: pkg/analyzer_cli/test/package_prefix_test.dart |
diff --git a/pkg/analyzer_cli/test/package_prefix_test.dart b/pkg/analyzer_cli/test/package_prefix_test.dart |
index 1a3f9b0d99a493b732ea707bef41ff364e0cccb2..4bda02e09e4605ce2ad90314a1b7cb982febcece 100644 |
--- a/pkg/analyzer_cli/test/package_prefix_test.dart |
+++ b/pkg/analyzer_cli/test/package_prefix_test.dart |
@@ -1,3 +1,4 @@ |
+import 'dart:async'; |
import 'dart:io' show exitCode; |
import 'package:analyzer_cli/src/driver.dart' show Driver, outSink, errorSink; |
@@ -20,8 +21,8 @@ main() { |
runner = null; |
}); |
- test('shows only the hint whose package matches the prefix', () { |
- runner.run([ |
+ test('shows only the hint whose package matches the prefix', () async { |
+ await runner.run2([ |
"--packages", |
join(testDirectory, 'data', 'package_prefix', 'packagelist'), |
"--x-package-warnings-prefix=f", |
@@ -58,8 +59,9 @@ class _Runner { |
String get stderr => _stderr.toString(); |
String get stdout => _stdout.toString(); |
- void run(List<String> args) { |
- new Driver().start(args); |
+ |
+ Future<Null> run2(List<String> args) async { |
+ await new Driver().start(args); |
if (stderr.isNotEmpty) { |
fail("Unexpected output to stderr:\n$stderr"); |
} |