Index: tests/compiler/dart2js/list_tracer_length_test.dart |
diff --git a/tests/compiler/dart2js/list_tracer_length_test.dart b/tests/compiler/dart2js/list_tracer_length_test.dart |
index 2a48ef50fe658751f4f74bb9d47b2abc3ed2e184..6b039d8d35f51347799d62bd4b232be1ca349dc3 100644 |
--- a/tests/compiler/dart2js/list_tracer_length_test.dart |
+++ b/tests/compiler/dart2js/list_tracer_length_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 'compiler_helper.dart'; |
const String TEST1 = r""" |
@@ -63,8 +64,9 @@ main() { |
"""; |
void checkRangeError(String test, {bool hasRangeError}) { |
- String generated = compileAll(test); |
- Expect.equals(hasRangeError, generated.contains('ioore')); |
+ asyncTest(() => compileAll(test).then((generated) { |
+ Expect.equals(hasRangeError, generated.contains('ioore')); |
+ })); |
} |
main() { |