Skip to content

Commit 6ee9088

Browse files
committed
p2p/nat: disable UPnP test on windows
1 parent 3832019 commit 6ee9088

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎p2p/nat/natupnp_test.go‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,18 @@ import (
2121
"io"
2222
"net"
2323
"net/http"
24+
"runtime"
2425
"strings"
2526
"testing"
2627

2728
"github.com/huin/goupnp/httpu"
2829
)
2930

3031
func TestUPNP_DDWRT(t *testing.T) {
32+
if runtime.GOOS == "windows" {
33+
t.Skipf("disabled to avoid firewall prompt")
34+
}
35+
3136
dev := &fakeIGD{
3237
t: t,
3338
ssdpResp: "HTTP/1.1 200 OK\r\n" +

0 commit comments

Comments
 (0)