fix: Skip tests on windows

This commit is contained in:
Ilya Kuznetsov 2024-12-06 19:31:19 +01:00
parent 0221c28a80
commit a3fdc8dd6c
No known key found for this signature in database
GPG Key ID: 91F3DDCF5D21CDDF
1 changed files with 4 additions and 0 deletions

View File

@ -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")