From 3bfc6dfe49ed92e37927816e6703e4d922f7a88b Mon Sep 17 00:00:00 2001 From: Emil Hessman Date: Fri, 29 May 2015 21:03:55 +0200 Subject: [PATCH] command/agent: skip unix file permissions test on windows --- command/agent/util_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/command/agent/util_test.go b/command/agent/util_test.go index ab47c5e0f0..c2442c289c 100644 --- a/command/agent/util_test.go +++ b/command/agent/util_test.go @@ -3,6 +3,7 @@ package agent import ( "io/ioutil" "os" + "runtime" "testing" "time" ) @@ -43,6 +44,9 @@ func TestStringHash(t *testing.T) { } func TestSetFilePermissions(t *testing.T) { + if runtime.GOOS == "windows" { + t.SkipNow() + } tempFile, err := ioutil.TempFile("", "consul") if err != nil { t.Fatalf("err: %s", err)