forked from quic-go/quic-go
use a kernel determined server address in proxy tests
Now we can execute the proxy tests in parallel without running into "address already in use" errors.
This commit is contained in:
@@ -45,7 +45,7 @@ var _ = Describe("Handshake RTT tests", func() {
|
||||
server, err = quic.ListenAddr("localhost:0", testdata.GetTLSConfig(), serverConfig)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
// start the proxy
|
||||
proxy, err = quicproxy.NewQuicProxy("localhost:0", protocol.VersionWhatever, quicproxy.Opts{
|
||||
proxy, err = quicproxy.NewQuicProxy("localhost:0", protocol.VersionWhatever, &quicproxy.Opts{
|
||||
RemoteAddr: server.Addr().String(),
|
||||
DelayPacket: func(_ quicproxy.Direction, _ protocol.PacketNumber) time.Duration { return rtt / 2 },
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user