Skip to content

Commit

Permalink
[chore] Skip file permissions test on windows (open-telemetry#27065)
Browse files Browse the repository at this point in the history
  • Loading branch information
djaglowski authored and jmsnll committed Nov 12, 2023
1 parent c20f62e commit 084231c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package finder
import (
"os"
"path/filepath"
"runtime"
"testing"

"github.com/stretchr/testify/assert"
Expand Down Expand Up @@ -193,6 +194,9 @@ func TestFindFiles(t *testing.T) {
}

func TestFindFilesWithIOErrors(t *testing.T) {
if runtime.GOOS == "windows" {
t.Skip("permissions test not valid on windows")
}
cwd, err := os.Getwd()
require.NoError(t, err)
require.NoError(t, os.Chdir(t.TempDir()))
Expand Down

0 comments on commit 084231c

Please sign in to comment.