Explorar o código

p2p/nat: disable UPnP test on windows

Felix Lange %!s(int64=10) %!d(string=hai) anos
pai
achega
6ee908848c
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      p2p/nat/natupnp_test.go

+ 5 - 0
p2p/nat/natupnp_test.go

@@ -21,6 +21,7 @@ import (
 	"io"
 	"net"
 	"net/http"
+	"runtime"
 	"strings"
 	"testing"
 
@@ -28,6 +29,10 @@ import (
 )
 
 func TestUPNP_DDWRT(t *testing.T) {
+	if runtime.GOOS == "windows" {
+		t.Skipf("disabled to avoid firewall prompt")
+	}
+
 	dev := &fakeIGD{
 		t: t,
 		ssdpResp: "HTTP/1.1 200 OK\r\n" +