From 084231c28c9b8d830120453cc10d453da3e87570 Mon Sep 17 00:00:00 2001 From: Daniel Jaglowski Date: Thu, 21 Sep 2023 14:52:47 -0600 Subject: [PATCH] [chore] Skip file permissions test on windows (#27065) Fixes https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/27063 --- .../fileconsumer/matcher/internal/finder/finder_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/stanza/fileconsumer/matcher/internal/finder/finder_test.go b/pkg/stanza/fileconsumer/matcher/internal/finder/finder_test.go index 96ca6112a041..14c415e125f1 100644 --- a/pkg/stanza/fileconsumer/matcher/internal/finder/finder_test.go +++ b/pkg/stanza/fileconsumer/matcher/internal/finder/finder_test.go @@ -6,6 +6,7 @@ package finder import ( "os" "path/filepath" + "runtime" "testing" "github.com/stretchr/testify/assert" @@ -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()))