mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-21 18:38:07 +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 (
|
||||
"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…
Reference in a new issue