Skip to content

Commit

Permalink
[chore] Skip a few flaky batch sender tests on Windows (#10831)
Browse files Browse the repository at this point in the history
Those few ones seem particularly flaky on Windows:
#10758
#10802
#10810
  • Loading branch information
songy23 authored Aug 7, 2024
1 parent 2b9697f commit 88b3153
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion exporter/exporterhelper/batch_sender_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package exporterhelper // import "go.opentelemetry.io/collector/exporter/exporte
import (
"context"
"errors"
"runtime"
"sync"
"testing"
"time"
Expand All @@ -19,6 +20,9 @@ import (
)

func TestBatchSender_Merge(t *testing.T) {
if runtime.GOOS == "windows" {
t.Skip("skipping flaky test on Windows, see https://github.com/open-telemetry/opentelemetry-collector/issues/10758")
}
cfg := exporterbatcher.NewDefaultConfig()
cfg.MinSizeItems = 10
cfg.FlushTimeout = 100 * time.Millisecond
Expand Down Expand Up @@ -270,7 +274,9 @@ func TestBatchSender_PostShutdown(t *testing.T) {
}

func TestBatchSender_ConcurrencyLimitReached(t *testing.T) {

if runtime.GOOS == "windows" {
t.Skip("skipping flaky test on Windows, see https://github.com/open-telemetry/opentelemetry-collector/issues/10810")
}
tests := []struct {
name string
batcherCfg exporterbatcher.Config
Expand Down Expand Up @@ -655,6 +661,9 @@ func TestBatchSenderTimerResetNoConflict(t *testing.T) {
}

func TestBatchSenderTimerFlush(t *testing.T) {
if runtime.GOOS == "windows" {
t.Skip("skipping flaky test on Windows, see https://github.com/open-telemetry/opentelemetry-collector/issues/10802")
}
bCfg := exporterbatcher.NewDefaultConfig()
bCfg.MinSizeItems = 8
bCfg.FlushTimeout = 100 * time.Millisecond
Expand Down

0 comments on commit 88b3153

Please sign in to comment.