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 /fasthttpadaptor | |
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 'fasthttpadaptor')
-rw-r--r-- | fasthttpadaptor/adaptor_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fasthttpadaptor/adaptor_test.go b/fasthttpadaptor/adaptor_test.go index e252f39..aa50fb6 100644 --- a/fasthttpadaptor/adaptor_test.go +++ b/fasthttpadaptor/adaptor_test.go @@ -13,6 +13,8 @@ import ( ) func TestNewFastHTTPHandler(t *testing.T) { + t.Parallel() + expectedMethod := fasthttp.MethodPost expectedProto := "HTTP/1.1" expectedProtoMajor := 1 @@ -141,6 +143,8 @@ func setContextValueMiddleware(next fasthttp.RequestHandler, key string, value i } func TestContentType(t *testing.T) { + t.Parallel() + nethttpH := func(w http.ResponseWriter, r *http.Request) { w.Write([]byte("<!doctype html><html>")) //nolint:errcheck } |