Index: tests/compiler/dart2js/analyze_only_test.dart |
diff --git a/tests/compiler/dart2js/analyze_only_test.dart b/tests/compiler/dart2js/analyze_only_test.dart |
index 67bbeb8d4f7330e699c5372133d410b932df3ca5..818149aca185b239e59d535d8377fffd21493472 100644 |
--- a/tests/compiler/dart2js/analyze_only_test.dart |
+++ b/tests/compiler/dart2js/analyze_only_test.dart |
@@ -45,7 +45,7 @@ runCompiler(String main, List<String> options, |
onValue(code, errors, warnings); |
}, onError: (e) { |
throw 'Compilation failed'; |
- }).whenComplete(() => asyncEnd()); |
+ }).then(asyncSuccess); |
} |
main() { |