Skip to content

Commit 2a81bba

Browse files
authored
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
1 parent 301a868 commit 2a81bba

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

p2p/nat/stun_test.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,8 @@ package nat
1818

1919
import (
2020
"testing"
21-
22-
"github.com/stretchr/testify/assert"
2321
)
2422

25-
func TestNatStun(t *testing.T) {
26-
nat, err := newSTUN("")
27-
assert.NoError(t, err)
28-
_, err = nat.ExternalIP()
29-
assert.NoError(t, err)
30-
}
31-
3223
func TestUnreachedNatServer(t *testing.T) {
3324
stun := &stun{
3425
serverList: []string{"198.51.100.2:1234", "198.51.100.5"},

0 commit comments

Comments
 (0)