Skip to content

Commit

Permalink
Skip permissions test on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
camdencheek committed Jun 19, 2020
1 parent dc68e24 commit ff38ac9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions agent/agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package agent
import (
"os"
"path/filepath"
"runtime"
"testing"

"github.com/bluemedora/bplogagent/internal/testutil"
Expand All @@ -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)
Expand Down

0 comments on commit ff38ac9

Please sign in to comment.