Index: tests/compiler/dart2js/private_test.dart |
diff --git a/tests/compiler/dart2js/private_test.dart b/tests/compiler/dart2js/private_test.dart |
index c8918a70f04f470327b9d1370ed3b88fb605ca8c..2bb9f1997b92b751d7e94f1e1859be91da77e7bd 100644 |
--- a/tests/compiler/dart2js/private_test.dart |
+++ b/tests/compiler/dart2js/private_test.dart |
@@ -3,6 +3,7 @@ |
// BSD-style license that can be found in the LICENSE file. |
import "package:expect/expect.dart"; |
+import "package:async_helper/async_helper.dart"; |
import 'mock_compiler.dart'; |
import '../../../sdk/lib/_internal/compiler/implementation/source_file.dart'; |
@@ -68,8 +69,9 @@ void analyze(String text, [expectedWarnings]) { |
'''; |
Uri uri = Uri.parse('src:public'); |
compiler.registerSource(uri, source); |
- compiler.runCompiler(uri); |
- compareWarningKinds(text, expectedWarnings, compiler.warnings); |
+ asyncTest(() => compiler.runCompiler(uri).then((_) { |
+ compareWarningKinds(text, expectedWarnings, compiler.warnings); |
+ })); |
} |
void main() { |