mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-24 08:49:29 +00:00
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
This commit is contained in:
parent
301a868d28
commit
2a81bbaa4f
1 changed files with 0 additions and 9 deletions
|
|
@ -18,17 +18,8 @@ package nat
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"testing"
|
"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) {
|
func TestUnreachedNatServer(t *testing.T) {
|
||||||
stun := &stun{
|
stun := &stun{
|
||||||
serverList: []string{"198.51.100.2:1234", "198.51.100.5"},
|
serverList: []string{"198.51.100.2:1234", "198.51.100.5"},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue