fix typo in UDP connection helper function in tests (#4970)

This commit is contained in:
Marten Seemann
2025-02-24 09:39:29 +01:00
committed by GitHub
parent 6033030017
commit 751ca8dfb6
34 changed files with 230 additions and 230 deletions

View File

@@ -25,21 +25,21 @@ func TestNATRebinding(t *testing.T) {
defer f.Close()
tlsConf.KeyLogWriter = f
server, err := quic.Listen(
newUPDConnLocalhost(t),
newUDPConnLocalhost(t),
tlsConf,
getQuicConfig(&quic.Config{Tracer: newTracer(tracer)}),
)
require.NoError(t, err)
defer server.Close()
newPath := newUPDConnLocalhost(t)
clientUDPConn := newUPDConnLocalhost(t)
newPath := newUDPConnLocalhost(t)
clientUDPConn := newUDPConnLocalhost(t)
oldPathRTT := scaleDuration(10 * time.Millisecond)
newPathRTT := scaleDuration(20 * time.Millisecond)
proxy := quicproxy.Proxy{
ServerAddr: server.Addr().(*net.UDPAddr),
Conn: newUPDConnLocalhost(t),
Conn: newUDPConnLocalhost(t),
}
var mx sync.Mutex
var switchedPath bool