p2p/nat: remove test with default servers

The test occasionally fails when network connectivity is bad or if it hits the wrong
server. We usually don't add tests with external network dependency so I'm removing
them.
This commit is contained in:
Felix Lange 2025-02-20 18:50:16 +01:00
parent 301a868d28
commit 994da10535

View file

@ -18,17 +18,8 @@ package nat
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestNatStun(t *testing.T) {
nat, err := newSTUN("")
assert.NoError(t, err)
_, err = nat.ExternalIP()
assert.NoError(t, err)
}
func TestUnreachedNatServer(t *testing.T) {
stun := &stun{
serverList: []string{"198.51.100.2:1234", "198.51.100.5"},