Skip to content

Commit 88b3153

Browse files
authored
[chore] Skip a few flaky batch sender tests on Windows (#10831)
Those few ones seem particularly flaky on Windows: #10758 #10802 #10810
1 parent 2b9697f commit 88b3153

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

exporter/exporterhelper/batch_sender_test.go

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ package exporterhelper // import "go.opentelemetry.io/collector/exporter/exporte
66
import (
77
"context"
88
"errors"
9+
"runtime"
910
"sync"
1011
"testing"
1112
"time"
@@ -19,6 +20,9 @@ import (
1920
)
2021

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

272276
func TestBatchSender_ConcurrencyLimitReached(t *testing.T) {
273-
277+
if runtime.GOOS == "windows" {
278+
t.Skip("skipping flaky test on Windows, see https://github.com/open-telemetry/opentelemetry-collector/issues/10810")
279+
}
274280
tests := []struct {
275281
name string
276282
batcherCfg exporterbatcher.Config
@@ -655,6 +661,9 @@ func TestBatchSenderTimerResetNoConflict(t *testing.T) {
655661
}
656662

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

0 commit comments

Comments
 (0)