aboutsummaryrefslogtreecommitdiff
path: root/allocation_test.go
diff options
context:
space:
mode:
authorGravatar Erik Dubbelboer <erik@dubbelboer.com> 2019-10-16 01:59:56 +0200
committerGravatar Erik Dubbelboer <erik@dubbelboer.com> 2019-10-16 10:20:13 +0200
commitc3d82ca3a430260ff1795abfeac9e8396ed6f6fe (patch)
treedde63ec5b5f22388ef65a12ca7dc6bc131bee2d8 /allocation_test.go
parentUse Fatal instead of Fatalf when no formatting used (diff)
downloadfasthttp-c3d82ca3a430260ff1795abfeac9e8396ed6f6fe.tar.gz
fasthttp-c3d82ca3a430260ff1795abfeac9e8396ed6f6fe.tar.bz2
fasthttp-c3d82ca3a430260ff1795abfeac9e8396ed6f6fe.zip
Speed up testing by running tests in parallel
Diffstat (limited to 'allocation_test.go')
-rw-r--r--allocation_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/allocation_test.go b/allocation_test.go
index 45f10e5..57edc03 100644
--- a/allocation_test.go
+++ b/allocation_test.go
@@ -9,6 +9,8 @@ import (
)
func TestAllocationServeConn(t *testing.T) {
+ t.Parallel()
+
s := &Server{
Handler: func(ctx *RequestCtx) {
},
@@ -70,6 +72,8 @@ func TestAllocationClient(t *testing.T) {
}
func TestAllocationURI(t *testing.T) {
+ t.Parallel()
+
uri := []byte("http://username:password@example.com/some/path?foo=bar#test")
n := testing.AllocsPerRun(100, func() {