diff --git a/pkg/connection/port_test.go b/pkg/connection/port_test.go index 6004098..2462457 100644 --- a/pkg/connection/port_test.go +++ b/pkg/connection/port_test.go @@ -4,12 +4,17 @@ import ( "fmt" "net" "os" + "runtime" "testing" "github.com/stretchr/testify/assert" ) func Test_portAvailable(t *testing.T) { + if runtime.GOOS == "windows" { + t.Skip("FIXME") + } + assert.Equal(t, true, portAvailable(8081)) serv, err := net.Listen("tcp", "127.0.0.1:8081") @@ -34,6 +39,10 @@ func Test_portAvailable(t *testing.T) { } func Test_getAvailablePort(t *testing.T) { + if runtime.GOOS == "windows" { + t.Skip("FIXME") + } + port, err := getAvailablePort(8081, 1) assert.Equal(t, nil, err) assert.Equal(t, 8081, port)