aboutsummaryrefslogtreecommitdiff
path: root/lib/http/server_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/http/server_test.go')
-rw-r--r--lib/http/server_test.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/http/server_test.go b/lib/http/server_test.go
index a3a82d9e..6542d833 100644
--- a/lib/http/server_test.go
+++ b/lib/http/server_test.go
@@ -995,6 +995,10 @@ func TestServer_Options_HandleFS(t *testing.T) {
},
expStatusCode: http.StatusOK,
expResBody: "<html><body>Hello, /auth/sub!</body></html>\n",
+ }, {
+ desc: `With public path not exists`,
+ reqPath: `/index.php`,
+ expStatusCode: http.StatusNotFound,
}}
for _, c = range cases {
@@ -1025,7 +1029,7 @@ func TestServer_Options_HandleFS(t *testing.T) {
t.Fatalf("%s: %s", c.desc, err)
}
- test.Assert(t, "response body", c.expResBody, string(gotBody))
+ test.Assert(t, c.desc+`: response body`, c.expResBody, string(gotBody))
}
}