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

Unified Diff: test/lish/server_arg_overrides_publish_to_url_test.dart

Issue 1172803002: Emit a failing error code for failing validation. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 5 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
Index: test/lish/server_arg_overrides_publish_to_url_test.dart
diff --git a/test/lish/server_arg_overrides_publish_to_url_test.dart b/test/lish/server_arg_overrides_publish_to_url_test.dart
index b5c9a14eb40b6b7918b02d0da978b2b5af2090b5..f165cb527bc5e4e616ec289ab13d6631454c105d 100644
--- a/test/lish/server_arg_overrides_publish_to_url_test.dart
+++ b/test/lish/server_arg_overrides_publish_to_url_test.dart
@@ -2,6 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
+import 'package:pub/src/exit_codes.dart' as exit_codes;
import 'package:scheduled_test/scheduled_test.dart';
import '../descriptor.dart' as d;
@@ -15,6 +16,7 @@ main() {
d.dir(appPath, [d.pubspec(pkg)]).create();
schedulePub(args: ["lish", "--dry-run", "--server", "http://arg.com"],
- output: contains("http://arg.com"));
+ output: contains("http://arg.com"),
+ exitCode: exit_codes.DATA);
});
}
« no previous file with comments | « test/lish/preview_package_validation_has_a_warning_test.dart ('k') | test/lish/uses_publish_to_url_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698