Skip to content

Commit

Permalink
do not skip the test
Browse files Browse the repository at this point in the history
  • Loading branch information
atoulme committed Jan 11, 2025
1 parent 417e5da commit c7999fb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ services:
build: ./envoy
ports:
- "9901:9901"
networks:
- envoy
# Haproxy image for haproxy test:
haproxy:
image: quay.io/splunko11ytest/haproxy:latest
Expand Down Expand Up @@ -316,3 +318,7 @@ services:
interval: 10s
timeout: 5s
retries: 5
networks:
envoy:
driver: bridge
name: envoy
5 changes: 3 additions & 2 deletions tests/receivers/envoy/bundled_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import (
)

func TestEnvoyDockerObserver(t *testing.T) {
t.Skip("Redis data points are also discovered since Redis runs, making this test fail.")
testutils.SkipIfNotContainerTest(t)
dockerSocket := testutils.CreateDockerSocketProxy(t)
require.NoError(t, dockerSocket.Start())
Expand All @@ -43,7 +42,9 @@ func TestEnvoyDockerObserver(t *testing.T) {
defer tc.PrintLogsOnFailure()
defer tc.ShutdownOTLPReceiverSink()
_, shutdown := tc.SplunkOtelCollectorContainer("otlp_exporter.yaml", func(collector testutils.Collector) testutils.Collector {
return collector.WithEnv(map[string]string{
cc := collector.(*testutils.CollectorContainer)
cc.Container = cc.Container.WithNetworks("envoy").WithNetworkMode("bridge")
return cc.WithEnv(map[string]string{
"SPLUNK_DISCOVERY_DURATION": "20s",
"SPLUNK_DISCOVERY_LOG_LEVEL": "debug",
}).WithArgs(
Expand Down

0 comments on commit c7999fb

Please sign in to comment.