| 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 dbf8795365c83a6b14e41cf5d632c4a0376040e9..fa4bbf07c67607c4c37bb0dfd32f7862a68e30ea 100644
|
| --- a/tests/compiler/dart2js/bad_loop_test.dart
|
| +++ b/tests/compiler/dart2js/bad_loop_test.dart
|
| @@ -37,10 +37,11 @@ main() {
|
| libraryRoot,
|
| packageRoot,
|
| ['--analyze-only']);
|
| - compiler.run(Uri.parse('memory:main.dart'));
|
| - Expect.isTrue(compiler.compilationFailed);
|
| - Expect.equals(5, errorCount);
|
| - Expect.equals(1, warningCount);
|
| + compiler.run(Uri.parse('memory:main.dart')).then((_) {
|
| + Expect.isTrue(compiler.compilationFailed);
|
| + Expect.equals(5, errorCount);
|
| + Expect.equals(1, warningCount);
|
| + });
|
| }
|
|
|
| const Map MEMORY_SOURCE_FILES = const {
|
|
|