From e88d062abc7573462bd3cca99102244226e7a016 Mon Sep 17 00:00:00 2001 From: Suhas Karanth Date: Fri, 8 Dec 2017 09:01:27 +0530 Subject: [PATCH] skip test for cachedir on Windows --- cmd/dep/integration_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cmd/dep/integration_test.go b/cmd/dep/integration_test.go index 0ecebaff54..b332b0cf50 100644 --- a/cmd/dep/integration_test.go +++ b/cmd/dep/integration_test.go @@ -11,6 +11,7 @@ import ( "os" "os/exec" "path/filepath" + "runtime" "strings" "testing" @@ -54,6 +55,13 @@ func TestIntegration(t *testing.T) { } func TestDepCachedir(t *testing.T) { + if runtime.GOOS == "windows" { + // This test is unreliable on Windows and fails at random which makes it very + // difficult to debug. It might have something to do with parallel execution. + // Since the test doesn't test any specific behavior of Windows, it should be okay + // to skip. + t.Skip("skipping on windows") + } t.Parallel() test.NeedsExternalNetwork(t)