From d1dbeb02cb6fcf07d3e6ddb49801ebd25df3a821 Mon Sep 17 00:00:00 2001 From: "samuel.heslop@disney.com" Date: Fri, 4 Nov 2016 13:12:09 +0000 Subject: [PATCH] Ignore Unix Socket tests on windows OS --- gin_integration_test.go | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/gin_integration_test.go b/gin_integration_test.go index 85216970..18b24896 100644 --- a/gin_integration_test.go +++ b/gin_integration_test.go @@ -7,11 +7,13 @@ import ( "net" "net/http" "os" + "runtime" "testing" "time" - "github.com/stretchr/testify/assert" "net/http/httptest" + + "github.com/stretchr/testify/assert" ) func testRequest(t *testing.T, url string) { @@ -77,6 +79,10 @@ func TestRunWithPort(t *testing.T) { } func TestUnixSocket(t *testing.T) { + if runtime.GOOS == "windows" { + return + } + router := New() go func() { @@ -101,6 +107,10 @@ func TestUnixSocket(t *testing.T) { } func TestBadUnixSocket(t *testing.T) { + if runtime.GOOS == "windows" { + return + } + router := New() assert.Error(t, router.RunUnix("#/tmp/unix_unit_test")) }