Index: tests/compiler/dart2js/call_site_simple_type_inferer_test.dart |
diff --git a/tests/compiler/dart2js/call_site_simple_type_inferer_test.dart b/tests/compiler/dart2js/call_site_simple_type_inferer_test.dart |
index b02bdce7f63058c14749c477c2d55181501610bc..541face680522610cf6a210fae458ca035f192c9 100644 |
--- a/tests/compiler/dart2js/call_site_simple_type_inferer_test.dart |
+++ b/tests/compiler/dart2js/call_site_simple_type_inferer_test.dart |
@@ -16,14 +16,13 @@ void compileAndFind(String code, |
bool disableInlining, |
check(compiler, element)) { |
Uri uri = new Uri(scheme: 'source'); |
- asyncStart(); |
var compiler = compilerFor(code, uri); |
compiler.disableInlining = disableInlining; |
- compiler.runCompiler(uri).then((_) { |
+ asyncTest(() => compiler.runCompiler(uri).then((_) { |
var cls = findElement(compiler, className); |
var member = cls.lookupLocalMember(buildSourceString(memberName)); |
return check(compiler, member); |
- }).whenComplete(() => asyncEnd()); |
+ })); |
} |
const String TEST_1 = r""" |