From c25b330d8d02ed47674203a8c7a8a30c936c70ef Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Sun, 29 Apr 2018 10:15:21 -0700 Subject: [PATCH] test/integration: fix tests after earlier change to root handler In f8bc4ac6e5bea I made the root handler start returning 404s for unknown URLs, which broke this test. Update this tests. Fixes #1132 Change-Id: I6e14811dda00e741d80e1c5603f849ffcb26f361 --- pkg/test/integration/camlistore_test.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkg/test/integration/camlistore_test.go b/pkg/test/integration/camlistore_test.go index 6c1b7e8af..3a8f082e6 100644 --- a/pkg/test/integration/camlistore_test.go +++ b/pkg/test/integration/camlistore_test.go @@ -123,10 +123,11 @@ func TestWebsocketQuery(t *testing.T) { func TestInternalHandler(t *testing.T) { w := test.GetWorld(t) tests := map[string]int{ - "/no-http-storage/": 401, - "/no-http-handler/": 401, - "/good-status/": 200, - "/bs-and-maybe-also-index/camli": 400, + "/": 200, + "/test-that-root-handler-returns-404": 404, + "/no-http-storage/": 401, + "/no-http-handler/": 401, + "/bs-and-maybe-also-index/camli": 400, "/bs/camli/sha1-b2201302e129a4396a323cb56283cddeef11bbe8": 404, "/no-http-storage/camli/sha1-b2201302e129a4396a323cb56283cddeef11bbe8": 401, }