diff options
author | Erik Dubbelboer <erik@dubbelboer.com> | 2020-07-15 11:29:34 +0200 |
---|---|---|
committer | Erik Dubbelboer <erik@dubbelboer.com> | 2020-07-15 11:29:34 +0200 |
commit | 4cffe1a510b21e2a2502d16657f7fe8497cd1ac5 (patch) | |
tree | d96d987ce27a7d988bd0e7bfdba66d5e6ddad853 /fs_test.go | |
parent | Ignore gosec warning in example (diff) | |
download | fasthttp-4cffe1a510b21e2a2502d16657f7fe8497cd1ac5.tar.gz fasthttp-4cffe1a510b21e2a2502d16657f7fe8497cd1ac5.tar.bz2 fasthttp-4cffe1a510b21e2a2502d16657f7fe8497cd1ac5.zip |
Use a directory we are sure to exist for testsv1.15.1
Diffstat (limited to 'fs_test.go')
-rw-r--r-- | fs_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -754,16 +754,16 @@ func TestServeFileDirectoryRedirect(t *testing.T) { ctx.Request.Reset() ctx.Response.Reset() - ServeFile(&ctx, ".git") + ServeFile(&ctx, "fasthttputil") if ctx.Response.StatusCode() != StatusFound { - t.Fatalf("Unexpected status code %d for directory '/.git' without trailing slash. Expecting %d.", ctx.Response.StatusCode(), StatusFound) + t.Fatalf("Unexpected status code %d for directory '/fasthttputil' without trailing slash. Expecting %d.", ctx.Response.StatusCode(), StatusFound) } ctx.Request.Reset() ctx.Response.Reset() - ServeFile(&ctx, ".git/") + ServeFile(&ctx, "fasthttputil/") if ctx.Response.StatusCode() != StatusOK { - t.Fatalf("Unexpected status code %d for directory '/.git/' with trailing slash. Expecting %d.", ctx.Response.StatusCode(), StatusOK) + t.Fatalf("Unexpected status code %d for directory '/fasthttputil/' with trailing slash. Expecting %d.", ctx.Response.StatusCode(), StatusOK) } ctx.Request.Reset() |