Skip to content

Commit

Permalink
p2p/nat: skip TestUPNP in non-CI environments if discover fails (ethe…
Browse files Browse the repository at this point in the history
  • Loading branch information
meowsbits authored May 25, 2021
1 parent 51b32cc commit 750115f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion p2p/nat/natupnp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
"io"
"net"
"net/http"
"os"
"runtime"
"strings"
"testing"
Expand Down Expand Up @@ -162,7 +163,11 @@ func TestUPNP_DDWRT(t *testing.T) {
// Attempt to discover the fake device.
discovered := discoverUPnP()
if discovered == nil {
t.Fatalf("not discovered")
if os.Getenv("CI") != "" {
t.Fatalf("not discovered")
} else {
t.Skipf("UPnP not discovered (known issue, see https://github.com/ethereum/go-ethereum/issues/21476)")
}
}
upnp, _ := discovered.(*upnp)
if upnp.service != "IGDv1-IP1" {
Expand Down

0 comments on commit 750115f

Please sign in to comment.