Fix proxy tests

This commit is contained in:
Zoltán Papp
2025-09-04 13:15:38 +02:00
parent 180b52ba26
commit ccf40fefaf
3 changed files with 5 additions and 3 deletions

View File

@@ -93,8 +93,9 @@ func TestProxyCloseByRemoteConn(t *testing.T) {
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
addr, _ := net.ResolveUDPAddr("udp", "100.108.135.221:51892")
relayedConn := newMockConn()
err := tt.proxy.AddTurnConn(ctx, nil, relayedConn)
err := tt.proxy.AddTurnConn(ctx, addr, relayedConn)
if err != nil {
t.Errorf("error: %v", err)
}