From a3fdc8dd6c96e70d420d67841c897d0f88c107e6 Mon Sep 17 00:00:00 2001 From: Ilya Kuznetsov Date: Fri, 6 Dec 2024 19:31:19 +0100 Subject: [PATCH] fix: Skip tests on windows --- bundle/internal/schema/main_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bundle/internal/schema/main_test.go b/bundle/internal/schema/main_test.go index c26d5aafd..a254258c2 100644 --- a/bundle/internal/schema/main_test.go +++ b/bundle/internal/schema/main_test.go @@ -4,6 +4,7 @@ import ( "io" "os" "path" + "runtime" "testing" "github.com/stretchr/testify/assert" @@ -36,6 +37,9 @@ func copyFile(src, dst string) error { // 2. replace all "PLACEHOLDER" values with the actual descriptions if possible // 3. run `make schema` again to regenerate the schema with acutal descriptions func TestRequiredAnnotationsForNewFields(t *testing.T) { + if runtime.GOOS == "windows" { + t.Skip() + } workdir := t.TempDir() annotationsPath := path.Join(workdir, "annotations.yml") annotationsOpenApiPath := path.Join(workdir, "annotations_openapi.yml")