Skip to content

Commit

Permalink
[chore] Skip Unix datagram tests on Windows (#37036)
Browse files Browse the repository at this point in the history
#### Description
Skip tests that are always failing on Windows. The tests were added via
#36608 but can't run on Windows..

Fixes
#10151
 
#### Testing
Tested locally.
  • Loading branch information
pjanotti authored Jan 6, 2025
1 parent 333f016 commit 5e50ee8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions receiver/statsdreceiver/receiver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package statsdreceiver
import (
"context"
"errors"
"runtime"
"testing"
"time"

Expand Down Expand Up @@ -128,6 +129,9 @@ func Test_statsdreceiver_EndToEnd(t *testing.T) {
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
cfg := tt.configFn()
if runtime.GOOS == "windows" && (cfg.NetAddr.Transport == confignet.TransportTypeUnix || cfg.NetAddr.Transport == confignet.TransportTypeUnixgram || cfg.NetAddr.Transport == confignet.TransportTypeUnixPacket) {
t.Skip("skipping UDS test on windows")
}
cfg.NetAddr.Endpoint = tt.addr
sink := new(consumertest.MetricsSink)
rcv, err := newReceiver(receivertest.NewNopSettings(), *cfg, sink)
Expand Down

0 comments on commit 5e50ee8

Please sign in to comment.