From 2cc8ceaceaacfef0a29b27ada0b82f020d08e468 Mon Sep 17 00:00:00 2001 From: Paulo Janotti Date: Thu, 19 Sep 2024 16:20:58 -0700 Subject: [PATCH] [chore] Skip flaky test on Windows (#35302) **Description:** Since `receiver/googlecloudspanner` is unmaintained I'm opting to simply skip the flaky test on Windows. **Link to tracking Issue:** Workaround for #32397 --- .../internal/filter/itemcardinality_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/receiver/googlecloudspannerreceiver/internal/filter/itemcardinality_test.go b/receiver/googlecloudspannerreceiver/internal/filter/itemcardinality_test.go index e89d2dafd500..071ba7573ea5 100644 --- a/receiver/googlecloudspannerreceiver/internal/filter/itemcardinality_test.go +++ b/receiver/googlecloudspannerreceiver/internal/filter/itemcardinality_test.go @@ -4,6 +4,7 @@ package filter import ( + "runtime" "testing" "time" @@ -122,6 +123,9 @@ func TestItemCardinalityFilter_Shutdown(t *testing.T) { } func TestItemCardinalityFilter_Filter(t *testing.T) { + if runtime.GOOS == "windows" { + t.Skip("Skipping test on Windows due to https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/32397") + } items := initialItems(t) logger := zaptest.NewLogger(t) filter, err := NewItemCardinalityFilter(metricName, totalLimit, limitByTimestamp, itemActivityPeriod, logger) @@ -175,6 +179,9 @@ func TestItemCardinalityFilter_Filter(t *testing.T) { } func TestItemCardinalityFilter_FilterItems(t *testing.T) { + if runtime.GOOS == "windows" { + t.Skip("Skipping test on Windows due to https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/32397") + } items := initialItemsWithSameTimestamp(t) logger := zaptest.NewLogger(t) filter, err := NewItemCardinalityFilter(metricName, totalLimit, limitByTimestamp, itemActivityPeriod, logger)