From ac1dbfda54fedfd92aedb859fce188cfb2992656 Mon Sep 17 00:00:00 2001 From: qvalentin Date: Sat, 27 Jan 2024 20:18:13 +0100 Subject: [PATCH] test(windows): skip some tests on windows --- internal/charts/chart_for_document_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/internal/charts/chart_for_document_test.go b/internal/charts/chart_for_document_test.go index 45bdefc2..74ceace3 100644 --- a/internal/charts/chart_for_document_test.go +++ b/internal/charts/chart_for_document_test.go @@ -3,6 +3,7 @@ package charts_test import ( "os" "path/filepath" + "runtime" "testing" "github.com/mrjosh/helm-ls/internal/charts" @@ -45,6 +46,9 @@ func TestGetChartForDocumentWorksForAlreadyAddedCharts(t *testing.T) { } func TestGetChartForDocumentWorksForNewToAddChart(t *testing.T) { + if runtime.GOOS == "windows" { + t.Skip("Skipping test on windows because of https://github.com/golang/go/issues/51442") + } var ( rootDir = t.TempDir() expectedChartDirectory = filepath.Join(rootDir, "chart") @@ -69,6 +73,9 @@ func TestGetChartForDocumentWorksForNewToAddChart(t *testing.T) { } func TestGetChartForDocumentWorksForNewToAddChartWithNestedFile(t *testing.T) { + if runtime.GOOS == "windows" { + t.Skip("Skipping test on windows because of https://github.com/golang/go/issues/51442") + } var ( rootDir = t.TempDir() expectedChartDirectory = filepath.Join(rootDir, "chart")