Index: tests/compiler/dart2js/dead_code_test.dart |
diff --git a/tests/compiler/dart2js/dead_code_test.dart b/tests/compiler/dart2js/dead_code_test.dart |
index 993d7e9505a471bdbaabe642020eb8c743426fde..cfa1357ea5feeea6228ee279a58c7cc176b45e5a 100644 |
--- a/tests/compiler/dart2js/dead_code_test.dart |
+++ b/tests/compiler/dart2js/dead_code_test.dart |
@@ -3,6 +3,7 @@ |
// BSD-style license that can be found in the LICENSE file. |
import "package:expect/expect.dart"; |
+import "../../async_helper.dart"; |
import 'compiler_helper.dart'; |
String TEST = r''' |
@@ -16,6 +17,7 @@ foo(a) { |
'''; |
main() { |
- String generated = compileAll(TEST); |
- Expect.isFalse(generated.contains('return 42'), 'dead code not eliminated'); |
+ asyncTest(() => compileAll(TEST).then((generated) { |
+ Expect.isFalse(generated.contains('return 42'), 'dead code not eliminated'); |
+ })); |
} |