Merge pull request #986 from ceh/skip-testsetfilepermissions-windows

command/agent: skip unix file permissions test on windows
pull/988/head
Ryan Uber 10 years ago
commit 26d15e6f07

@ -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