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

@@ -26,7 +26,7 @@ func testStatelessReset(t *testing.T, connIDLen int) {
var statelessResetKey quic.StatelessResetKey
rand.Read(statelessResetKey[:])
c := newUPDConnLocalhost(t)
c := newUDPConnLocalhost(t)
tr := &quic.Transport{
Conn: c,
StatelessResetKey: &statelessResetKey,
@@ -58,7 +58,7 @@ func testStatelessReset(t *testing.T, connIDLen int) {
var drop atomic.Bool
proxy := quicproxy.Proxy{
Conn: newUPDConnLocalhost(t),
Conn: newUDPConnLocalhost(t),
ServerAddr: ln.Addr().(*net.UDPAddr),
DropPacket: func(quicproxy.Direction, net.Addr, net.Addr, []byte) bool { return drop.Load() },
}
@@ -66,7 +66,7 @@ func testStatelessReset(t *testing.T, connIDLen int) {
defer proxy.Close()
cl := &quic.Transport{
Conn: newUPDConnLocalhost(t),
Conn: newUDPConnLocalhost(t),
ConnectionIDLength: connIDLen,
}
defer cl.Close()