p2p/nat: disable UPnP test on windows
This commit is contained in:
parent
3832019964
commit
6ee908848c
@ -21,6 +21,7 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"net"
|
"net"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
"runtime"
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
@ -28,6 +29,10 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func TestUPNP_DDWRT(t *testing.T) {
|
func TestUPNP_DDWRT(t *testing.T) {
|
||||||
|
if runtime.GOOS == "windows" {
|
||||||
|
t.Skipf("disabled to avoid firewall prompt")
|
||||||
|
}
|
||||||
|
|
||||||
dev := &fakeIGD{
|
dev := &fakeIGD{
|
||||||
t: t,
|
t: t,
|
||||||
ssdpResp: "HTTP/1.1 200 OK\r\n" +
|
ssdpResp: "HTTP/1.1 200 OK\r\n" +
|
||||||
|
Loading…
Reference in New Issue
Block a user