Skip to content

Commit

Permalink
Fix test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
fredthomsen committed Jun 9, 2023
1 parent e93d1f6 commit 4f36323
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion receiver/otlpreceiver/otlp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,12 @@ func TestJsonHttp(t *testing.T) {
}
addr := testutil.GetAvailableLocalAddress(t)
tracesURLPath := "/v1/traceingest"
metricsURLPath := "/v1/metricingest"
logsURLPath := "/v1/logingest"

// Set the buffer count to 1 to make it flush the test span immediately.
sink := &errOrSinkConsumer{TracesSink: new(consumertest.TracesSink)}
ocr := newHTTPReceiver(t, addr, tracesURLPath, defaultMetricsURLPath, defaultLogsURLPath, sink, nil)
ocr := newHTTPReceiver(t, addr, tracesURLPath, metricsURLPath, logsURLPath, sink, nil)

require.NoError(t, ocr.Start(context.Background(), componenttest.NewNopHost()), "Failed to start trace receiver")
t.Cleanup(func() { require.NoError(t, ocr.Shutdown(context.Background())) })
Expand Down

0 comments on commit 4f36323

Please sign in to comment.