diff options
author | Erik Dubbelboer <erik@dubbelboer.com> | 2021-06-18 14:57:18 +0200 |
---|---|---|
committer | Erik Dubbelboer <erik@dubbelboer.com> | 2021-06-18 14:57:18 +0200 |
commit | 9f2c63676d93a1fe1cf836f1ae125fa5fb566039 (patch) | |
tree | d7ae04044a81c18c7f250d4e93114f3008b452f4 /fs_test.go | |
parent | fix: set content-length properly when StreanRequestBody was enabled (#1049) (diff) | |
download | fasthttp-9f2c63676d93a1fe1cf836f1ae125fa5fb566039.tar.gz fasthttp-9f2c63676d93a1fe1cf836f1ae125fa5fb566039.tar.bz2 fasthttp-9f2c63676d93a1fe1cf836f1ae125fa5fb566039.zip |
Lower go test time
Diffstat (limited to 'fs_test.go')
-rw-r--r-- | fs_test.go | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -50,6 +50,8 @@ func TestNewVHostPathRewriter(t *testing.T) { } func TestNewVHostPathRewriterMaliciousHost(t *testing.T) { + t.Parallel() + var ctx RequestCtx var req Request req.Header.SetHost("/../../../etc/passwd") @@ -301,7 +303,7 @@ func TestServeFileUncompressed(t *testing.T) { } func TestFSByteRangeConcurrent(t *testing.T) { - t.Parallel() + // This test can't run parallel as files in / might by changed by other tests. stop := make(chan struct{}) defer close(stop) @@ -335,7 +337,7 @@ func TestFSByteRangeConcurrent(t *testing.T) { } func TestFSByteRangeSingleThread(t *testing.T) { - t.Parallel() + // This test can't run parallel as files in / might by changed by other tests. stop := make(chan struct{}) defer close(stop) @@ -818,12 +820,12 @@ func TestServeFileContentType(t *testing.T) { } func TestServeFileDirectoryRedirect(t *testing.T) { + t.Parallel() + if runtime.GOOS == "windows" { t.SkipNow() } - t.Parallel() - var ctx RequestCtx var req Request req.SetRequestURI("http://foobar.com") |