aboutsummaryrefslogtreecommitdiff
path: root/uri_test.go
diff options
context:
space:
mode:
authorGravatar Erik Dubbelboer <erik@dubbelboer.com> 2021-06-18 14:57:18 +0200
committerGravatar Erik Dubbelboer <erik@dubbelboer.com> 2021-06-18 14:57:18 +0200
commit9f2c63676d93a1fe1cf836f1ae125fa5fb566039 (patch)
treed7ae04044a81c18c7f250d4e93114f3008b452f4 /uri_test.go
parentfix: set content-length properly when StreanRequestBody was enabled (#1049) (diff)
downloadfasthttp-9f2c63676d93a1fe1cf836f1ae125fa5fb566039.tar.gz
fasthttp-9f2c63676d93a1fe1cf836f1ae125fa5fb566039.tar.bz2
fasthttp-9f2c63676d93a1fe1cf836f1ae125fa5fb566039.zip
Lower go test time
Diffstat (limited to 'uri_test.go')
-rw-r--r--uri_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/uri_test.go b/uri_test.go
index 2faf825..c56c14e 100644
--- a/uri_test.go
+++ b/uri_test.go
@@ -142,6 +142,8 @@ func testURIUpdate(t *testing.T, base, update, result string) {
}
func TestURIPathNormalize(t *testing.T) {
+ t.Parallel()
+
var u URI
// double slash
@@ -274,6 +276,8 @@ func testURIFullURI(t *testing.T, scheme, host, path, hash string, args *Args, e
}
func TestURIParseNilHost(t *testing.T) {
+ t.Parallel()
+
testURIParseScheme(t, "http://google.com/foo?bar#baz", "http", "google.com", "/foo?bar", "baz")
testURIParseScheme(t, "HTtP://google.com/", "http", "google.com", "/", "")
testURIParseScheme(t, "://google.com/xyz", "http", "google.com", "/xyz", "")
@@ -388,6 +392,8 @@ func testURIParse(t *testing.T, u *URI, host, uri,
}
func TestURIWithQuerystringOverride(t *testing.T) {
+ t.Parallel()
+
var u URI
u.SetQueryString("q1=foo&q2=bar")
u.QueryArgs().Add("q3", "baz")