Skip to content

Commit db339ee

Browse files
authored
Merge pull request #622 from djs55/windows
go: skip a Unix test on Windows
2 parents ecc9379 + c7894d6 commit db339ee

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

go/pkg/libproxy/network_proxy_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"io"
77
"net"
88
"os"
9+
"runtime"
910
"strings"
1011
"testing"
1112
"time"
@@ -118,6 +119,9 @@ func testProxy(t *testing.T, proto string, proxy Proxy) {
118119
}
119120

120121
func TestUnixProxy(t *testing.T) {
122+
if runtime.GOOS == "windows" {
123+
t.Skip("Unix domain sockets don't work on Windows")
124+
}
121125
pathA := "/tmp/network_proxy_test.sock"
122126
pathB := "/tmp/network_proxy_test.sock2"
123127
if err := os.Remove(pathA); err != nil && !(os.IsNotExist(err)) {

0 commit comments

Comments
 (0)