| Index: sdk/lib/_internal/pub/test/serve/invalid_method_test.dart
|
| diff --git a/sdk/lib/_internal/pub/test/serve/watch_removed_file_test.dart b/sdk/lib/_internal/pub/test/serve/invalid_method_test.dart
|
| similarity index 67%
|
| copy from sdk/lib/_internal/pub/test/serve/watch_removed_file_test.dart
|
| copy to sdk/lib/_internal/pub/test/serve/invalid_method_test.dart
|
| index 46fdc4cde14951770a824cddacad78b3ceac5a1b..a543ccc8168dbb153600342eb458d93522881f5c 100644
|
| --- a/sdk/lib/_internal/pub/test/serve/watch_removed_file_test.dart
|
| +++ b/sdk/lib/_internal/pub/test/serve/invalid_method_test.dart
|
| @@ -14,22 +14,17 @@ import 'utils.dart';
|
|
|
| main() {
|
| initConfig();
|
| - integration("stop serving a file that is removed", () {
|
| + integration("responds with a 405 for an invalid method", () {
|
| d.dir(appPath, [
|
| d.appPubspec(),
|
| d.dir("web", [
|
| - d.file("index.html", "body")
|
| + d.file("index.html", "<body>"),
|
| ])
|
| ]).create();
|
|
|
| startPubServe();
|
| - requestShouldSucceed("index.html", "body");
|
|
|
| - schedule(() => deleteEntry(
|
| - path.join(sandboxDir, appPath, "web", "index.html")));
|
| -
|
| - waitForBuildSuccess();
|
| - requestShould404("index.html");
|
| + postShould405("index.html");
|
| endPubServe();
|
| });
|
| }
|
|
|