From 5c53846fecc74026cf4ae1ea5a3f53204a906c09 Mon Sep 17 00:00:00 2001 From: Curtis Robert Date: Fri, 21 Mar 2025 12:05:54 -0700 Subject: [PATCH] [chore][receiver/haproxy] Skip test on Windows for now --- receiver/haproxyreceiver/scraper_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/receiver/haproxyreceiver/scraper_test.go b/receiver/haproxyreceiver/scraper_test.go index ade3742b6e1be..122d0368db4d1 100644 --- a/receiver/haproxyreceiver/scraper_test.go +++ b/receiver/haproxyreceiver/scraper_test.go @@ -9,6 +9,7 @@ import ( "net" "os" "path/filepath" + "runtime" "testing" "github.com/stretchr/testify/assert" @@ -64,6 +65,9 @@ func Test_scraper_readStats(t *testing.T) { } func Test_scraper_readStatsWithIncompleteValues(t *testing.T) { + if runtime.GOOS == "windows" { + t.Skip("Test is failing due to t.TempDir usage on Windows. See https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/38860") + } f := t.TempDir() socketAddr := filepath.Join(f, "testhaproxy.sock") l, err := net.Listen("unix", socketAddr)