From ff38ac9e6b8decf70f3882a444a5d54ebcdf2180 Mon Sep 17 00:00:00 2001 From: Camden Cheek Date: Thu, 18 Jun 2020 21:59:13 -0400 Subject: [PATCH] Skip permissions test on Windows --- agent/agent_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/agent/agent_test.go b/agent/agent_test.go index 63bfe22b8..2c61928bf 100644 --- a/agent/agent_test.go +++ b/agent/agent_test.go @@ -3,6 +3,7 @@ package agent import ( "os" "path/filepath" + "runtime" "testing" "github.com/bluemedora/bplogagent/internal/testutil" @@ -25,6 +26,9 @@ func TestOpenDatabase(t *testing.T) { }) t.Run("BadPermissions", func(t *testing.T) { + if runtime.GOOS == "windows" { + t.Skip("Windows does not have the same kind of file permissions") + } tempDir := testutil.NewTempDir(t) err := os.MkdirAll(filepath.Join(tempDir, "badperms"), 0666) require.NoError(t, err)