| 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 cddb964324d7410911c61ea8bf026165eb3412b8..532a80ed26dcf7f4b5f0037453adbef7e9043430 100644
|
| --- a/test/serve/web_socket/unserve_directory_arg_errors_test.dart
|
| +++ b/test/serve/web_socket/unserve_directory_arg_errors_test.dart
|
| @@ -19,10 +19,11 @@ main() {
|
| d.file("index.html", "<body>")
|
| ])
|
| ]).create();
|
| + pubGet();
|
| });
|
|
|
| integration("responds with an error if 'path' is not a string", () {
|
| - pubServe(shouldGetFirst: true);
|
| + pubServe();
|
| expectWebSocketError("unserveDirectory", {"path": 123},
|
| rpc_error_code.INVALID_PARAMS,
|
| 'Parameter "path" for method "unserveDirectory" must be a string, but '
|
| @@ -31,7 +32,7 @@ main() {
|
| });
|
|
|
| integration("responds with an error if 'path' is absolute", () {
|
| - pubServe(shouldGetFirst: true);
|
| + pubServe();
|
| expectWebSocketError("unserveDirectory", {"path": "/absolute.txt"},
|
| rpc_error_code.INVALID_PARAMS,
|
| '"path" must be a relative path. Got "/absolute.txt".');
|
| @@ -39,7 +40,7 @@ main() {
|
| });
|
|
|
| integration("responds with an error if 'path' reaches out", () {
|
| - pubServe(shouldGetFirst: true);
|
| + pubServe();
|
| expectWebSocketError("unserveDirectory", {"path": "a/../../bad.txt"},
|
| rpc_error_code.INVALID_PARAMS,
|
| '"path" cannot reach out of its containing directory. Got '
|
|
|