Skip to content

Commit

Permalink
[chore] Skip flaky test on Windows (open-telemetry#35302)
Browse files Browse the repository at this point in the history
**Description:**
Since `receiver/googlecloudspanner` is unmaintained I'm opting to simply
skip the flaky test on Windows.

**Link to tracking Issue:**
Workaround for open-telemetry#32397
  • Loading branch information
pjanotti authored and jriguera committed Oct 4, 2024
1 parent 112dc98 commit 448b4ec
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
package filter

import (
"runtime"
"testing"
"time"

Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 448b4ec

Please sign in to comment.