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

Unified Diff: test/serve/web_socket/unserve_directory_arg_errors_test.dart

Issue 1281623002: Fix a bunch of pub tests that started running "pub get". (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 5 years, 4 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/serve/web_socket/unserve_directory_arg_errors_test.dart
diff --git a/test/serve/web_socket/unserve_directory_arg_errors_test.dart b/test/serve/web_socket/unserve_directory_arg_errors_test.dart
index 265df168667fd7d1df89e58ad1a4864069c60d1b..cddb964324d7410911c61ea8bf026165eb3412b8 100644
--- a/test/serve/web_socket/unserve_directory_arg_errors_test.dart
+++ b/test/serve/web_socket/unserve_directory_arg_errors_test.dart
@@ -22,7 +22,7 @@ main() {
});
integration("responds with an error if 'path' is not a string", () {
- pubServe();
+ pubServe(shouldGetFirst: true);
expectWebSocketError("unserveDirectory", {"path": 123},
rpc_error_code.INVALID_PARAMS,
'Parameter "path" for method "unserveDirectory" must be a string, but '
@@ -31,7 +31,7 @@ main() {
});
integration("responds with an error if 'path' is absolute", () {
- pubServe();
+ pubServe(shouldGetFirst: true);
expectWebSocketError("unserveDirectory", {"path": "/absolute.txt"},
rpc_error_code.INVALID_PARAMS,
'"path" must be a relative path. Got "/absolute.txt".');
@@ -39,7 +39,7 @@ main() {
});
integration("responds with an error if 'path' reaches out", () {
- pubServe();
+ pubServe(shouldGetFirst: true);
expectWebSocketError("unserveDirectory", {"path": "a/../../bad.txt"},
rpc_error_code.INVALID_PARAMS,
'"path" cannot reach out of its containing directory. Got '
« no previous file with comments | « test/serve/web_socket/serve_directory_test.dart ('k') | test/serve/web_socket/unserve_directory_not_served_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698