Index: tests/compiler/dart2js/bad_loop_test.dart |
diff --git a/tests/compiler/dart2js/bad_loop_test.dart b/tests/compiler/dart2js/bad_loop_test.dart |
index 65629a453e8fb1bac366d2f252aec162f166f61e..8a86fd6c17383b331f94bf7d6c06e930ce29e820 100644 |
--- a/tests/compiler/dart2js/bad_loop_test.dart |
+++ b/tests/compiler/dart2js/bad_loop_test.dart |
@@ -37,12 +37,11 @@ main() { |
libraryRoot, |
packageRoot, |
['--analyze-only']); |
- asyncStart(); |
- compiler.run(Uri.parse('memory:main.dart')).then((_) { |
+ asyncTest(() => compiler.run(Uri.parse('memory:main.dart')).then((_) { |
Expect.isTrue(compiler.compilationFailed); |
Expect.equals(5, errorCount); |
Expect.equals(1, warningCount); |
- }).whenComplete(() => asyncEnd()); |
+ })); |
} |
const Map MEMORY_SOURCE_FILES = const { |