command/agent: skip unix file permissions test on windows

pull/986/head
Emil Hessman 10 years ago
parent b98d0760d8
commit 3bfc6dfe49

@ -3,6 +3,7 @@ package agent
import ( import (
"io/ioutil" "io/ioutil"
"os" "os"
"runtime"
"testing" "testing"
"time" "time"
) )
@ -43,6 +44,9 @@ func TestStringHash(t *testing.T) {
} }
func TestSetFilePermissions(t *testing.T) { func TestSetFilePermissions(t *testing.T) {
if runtime.GOOS == "windows" {
t.SkipNow()
}
tempFile, err := ioutil.TempFile("", "consul") tempFile, err := ioutil.TempFile("", "consul")
if err != nil { if err != nil {
t.Fatalf("err: %s", err) t.Fatalf("err: %s", err)

Loading…
Cancel
Save