Skip to content

Commit

Permalink
chore: applied feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
mojtaba-esk committed Aug 23, 2024
1 parent f27e223 commit 738b3da
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions e2e/basic/observability_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ const (

// TestObservabilityCollector is a test function that verifies the functionality of the otel collector setup
func (s *Suite) TestObservabilityCollector() {
const namePrefix = "observability"
const (
namePrefix = "observability"
targetStartCommand = "while true; do curl -X POST http://localhost:8888/v1/traces; sleep 5; done"
)
ctx := context.Background()

// Setup Prometheus
Expand Down Expand Up @@ -66,7 +69,7 @@ scrape_configs:

s.Require().NoError(target.Build().SetImage(ctx, curlImage))

err = target.Build().SetStartCommand("sh", "-c", "while true; do curl -X POST http://localhost:8888/v1/traces; sleep 5; done")
err = target.Build().SetStartCommand(targetStartCommand)
s.Require().NoError(err)

s.Require().NoError(target.Sidecars().Add(ctx, observabilitySidecar))
Expand Down

0 comments on commit 738b3da

Please sign in to comment.