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 /reuseport | |
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 'reuseport')
-rw-r--r-- | reuseport/reuseport_test.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/reuseport/reuseport_test.go b/reuseport/reuseport_test.go index 08722c3..7202dcf 100644 --- a/reuseport/reuseport_test.go +++ b/reuseport/reuseport_test.go @@ -9,10 +9,14 @@ import ( ) func TestTCP4(t *testing.T) { + t.Parallel() + testNewListener(t, "tcp4", "localhost:10081", 20, 1000) } func TestTCP6(t *testing.T) { + t.Parallel() + // Run this test only if tcp6 interface exists. if hasLocalIPv6(t) { testNewListener(t, "tcp6", "[::1]:10082", 20, 1000) @@ -33,7 +37,6 @@ func hasLocalIPv6(t *testing.T) bool { } func testNewListener(t *testing.T, network, addr string, serversCount, requestsCount int) { - var lns []net.Listener doneCh := make(chan struct{}, serversCount) |