Skip to content

Commit

Permalink
test: update 404 test
Browse files Browse the repository at this point in the history
Signed-off-by: rogerogers <[email protected]>
  • Loading branch information
rogerogers committed Jun 11, 2024
1 parent f85068f commit cc12c8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/app/context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func TestSetConnectionClose(t *testing.T) {
func TestNotFound(t *testing.T) {
ctx := NewContext(0)
ctx.NotFound()
if ctx.Response.StatusCode() != consts.StatusNotFound || string(ctx.Response.BodyBytes()) != "404 Page not found" {
if ctx.Response.StatusCode() != consts.StatusNotFound || string(ctx.Response.BodyBytes()) != "Not Found" {
t.Fatalf("unexpected status code or body")
}
}
Expand Down

0 comments on commit cc12c8c

Please sign in to comment.