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

Unified Diff: utils/tests/pub/update/hosted/fail_gracefully_on_url_resolve_test.dart

Issue 12437022: Use scheduled_test for Pub tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: re-upload Created 7 years, 9 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
Index: utils/tests/pub/update/hosted/fail_gracefully_on_url_resolve_test.dart
diff --git a/utils/tests/pub/update/hosted/fail_gracefully_on_url_resolve_test.dart b/utils/tests/pub/update/hosted/fail_gracefully_on_url_resolve_test.dart
index d7f8cbd01eee6c93def1bd5a4619a3bf5795ac4f..fbf904342c34690914bd026298a6364b858b3c5e 100644
--- a/utils/tests/pub/update/hosted/fail_gracefully_on_url_resolve_test.dart
+++ b/utils/tests/pub/update/hosted/fail_gracefully_on_url_resolve_test.dart
@@ -6,12 +6,13 @@ library pub_tests;
import 'dart:io';
+import '../../descriptor.dart' as d;
import '../../test_pub.dart';
main() {
integration('fails gracefully if the url does not resolve', () {
- dir(appPath, [
- pubspec({
+ d.dir(appPath, [
+ d.pubspec({
"name": "myapp",
"dependencies": {
"foo": {
@@ -22,7 +23,7 @@ main() {
}
}
})
- ]).scheduleCreate();
+ ]).create();
schedulePub(args: ['update'],
error: new RegExp('Could not resolve URL "http://pub.invalid".'),

Powered by Google App Engine
This is Rietveld 408576698