Skip to content

Commit

Permalink
[chore] Skip flaky test on Windows (#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 #32397
  • Loading branch information
pjanotti committed Sep 19, 2024
1 parent 58c9d51 commit 2cc8cea
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 2cc8cea

Please sign in to comment.