aboutsummaryrefslogtreecommitdiff
path: root/fs_test.go
diff options
context:
space:
mode:
authorGravatar Erik Dubbelboer <erik@dubbelboer.com> 2020-07-15 11:29:34 +0200
committerGravatar Erik Dubbelboer <erik@dubbelboer.com> 2020-07-15 11:29:34 +0200
commit4cffe1a510b21e2a2502d16657f7fe8497cd1ac5 (patch)
treed96d987ce27a7d988bd0e7bfdba66d5e6ddad853 /fs_test.go
parentIgnore gosec warning in example (diff)
downloadfasthttp-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.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs_test.go b/fs_test.go
index 6484b31..7f85649 100644
--- a/fs_test.go
+++ b/fs_test.go
@@ -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()