|
|
@ -58,7 +58,6 @@ func Test_listenHTTPUpgradeAndDial(t *testing.T) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
common.Must(conn.Close()) |
|
|
|
common.Must(conn.Close()) |
|
|
|
<-time.After(time.Second * 5) |
|
|
|
|
|
|
|
conn, err = Dial(ctx, net.TCPDestination(net.DomainAddress("localhost"), listenPort), streamSettings) |
|
|
|
conn, err = Dial(ctx, net.TCPDestination(net.DomainAddress("localhost"), listenPort), streamSettings) |
|
|
|
common.Must(err) |
|
|
|
common.Must(err) |
|
|
|
_, err = conn.Write([]byte("Test connection 2")) |
|
|
|
_, err = conn.Write([]byte("Test connection 2")) |
|
|
@ -118,7 +117,6 @@ func Test_listenHTTPUpgradeAndDialWithHeaders(t *testing.T) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
common.Must(conn.Close()) |
|
|
|
common.Must(conn.Close()) |
|
|
|
<-time.After(time.Second * 5) |
|
|
|
|
|
|
|
conn, err = Dial(ctx, net.TCPDestination(net.DomainAddress("localhost"), listenPort), streamSettings) |
|
|
|
conn, err = Dial(ctx, net.TCPDestination(net.DomainAddress("localhost"), listenPort), streamSettings) |
|
|
|
common.Must(err) |
|
|
|
common.Must(err) |
|
|
|
_, err = conn.Write([]byte("Test connection 2")) |
|
|
|
_, err = conn.Write([]byte("Test connection 2")) |
|
|
|