diff options
author | Erik Dubbelboer <erik@dubbelboer.com> | 2023-05-07 14:32:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-07 14:32:14 +0200 |
commit | fa72f3cc3907a2ad8fd109db846ece8d0c03810f (patch) | |
tree | 5a177315cdee4348853650bf48d34481bb7d2c3e /fasthttputil | |
parent | test: refactor to use WriteString (#1546) (diff) | |
download | fasthttp-fa72f3cc3907a2ad8fd109db846ece8d0c03810f.tar.gz fasthttp-fa72f3cc3907a2ad8fd109db846ece8d0c03810f.tar.bz2 fasthttp-fa72f3cc3907a2ad8fd109db846ece8d0c03810f.zip |
Fix tests (#1552)
Diffstat (limited to 'fasthttputil')
-rw-r--r-- | fasthttputil/inmemory_listener_test.go | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/fasthttputil/inmemory_listener_test.go b/fasthttputil/inmemory_listener_test.go index cbaa6df..698285d 100644 --- a/fasthttputil/inmemory_listener_test.go +++ b/fasthttputil/inmemory_listener_test.go @@ -13,8 +13,6 @@ import ( ) func TestInmemoryListener(t *testing.T) { - t.Parallel() - ln := NewInmemoryListener() ch := make(chan struct{}) @@ -158,16 +156,12 @@ func testInmemoryListenerHTTPSingle(t *testing.T, client *http.Client, content s } func TestInmemoryListenerHTTPSingle(t *testing.T) { - t.Parallel() - testInmemoryListenerHTTP(t, func(t *testing.T, client *http.Client) { testInmemoryListenerHTTPSingle(t, client, "request") }) } func TestInmemoryListenerHTTPSerial(t *testing.T) { - t.Parallel() - testInmemoryListenerHTTP(t, func(t *testing.T, client *http.Client) { for i := 0; i < 10; i++ { testInmemoryListenerHTTPSingle(t, client, fmt.Sprintf("request_%d", i)) @@ -176,8 +170,6 @@ func TestInmemoryListenerHTTPSerial(t *testing.T) { } func TestInmemoryListenerHTTPConcurrent(t *testing.T) { - t.Parallel() - testInmemoryListenerHTTP(t, func(t *testing.T, client *http.Client) { var wg sync.WaitGroup for i := 0; i < 10; i++ { @@ -203,8 +195,6 @@ func acceptLoop(ln net.Listener) { } func TestInmemoryListenerAddrDefault(t *testing.T) { - t.Parallel() - ln := NewInmemoryListener() verifyAddr(t, ln.Addr(), inmemoryAddr(0)) @@ -244,8 +234,6 @@ func verifyAddr(t *testing.T, got, expected net.Addr) { } func TestInmemoryListenerAddrCustom(t *testing.T) { - t.Parallel() - ln := NewInmemoryListener() listenerAddr := &net.TCPAddr{IP: net.IPv4(127, 0, 0, 1), Port: 12345} |