p2p/nat: remove test with default servers (#31225)

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.

Fixes #31220
pull/31172/head^2
Felix Lange 4 days ago committed by GitHub
parent 301a868d28
commit 2a81bbaa4f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 9
      p2p/nat/stun_test.go

@ -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"},

Loading…
Cancel
Save