Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(267)

Unified Diff: sdk/lib/_internal/pub/test/test_pub.dart

Issue 341643002: Make short-running Git operations synchronous. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/_internal/pub/test/package_files_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/test/test_pub.dart
diff --git a/sdk/lib/_internal/pub/test/test_pub.dart b/sdk/lib/_internal/pub/test/test_pub.dart
index 2380ed31d10e97c22177401a1f972b7de5a88863..7c8a6a99fc9a521aede09fbcface1483087c8282 100644
--- a/sdk/lib/_internal/pub/test/test_pub.dart
+++ b/sdk/lib/_internal/pub/test/test_pub.dart
@@ -645,13 +645,9 @@ void ensureGit() {
currentSchedule.timeout = new Duration(seconds: 30);
}
- schedule(() {
- return gitlib.isInstalled.then((installed) {
- if (!installed) {
- throw new Exception("Git must be installed to run this test.");
- }
- });
- }, 'ensuring that Git is installed');
+ if (!gitlib.isInstalled) {
+ throw new Exception("Git must be installed to run this test.");
+ }
}
/// Create a lock file for [package] without running `pub get`.
« no previous file with comments | « sdk/lib/_internal/pub/test/package_files_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698