Skip to content

Commit

Permalink
[chore] remove usage of deprecated obsreporttest.SetupTelemetry (#6643)
Browse files Browse the repository at this point in the history
Signed-off-by: Bogdan Drutu <[email protected]>
  • Loading branch information
bogdandrutu authored Dec 1, 2022
1 parent f35ed7e commit b5a9d6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions obsreport/obsreporttest/obsreporttest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func TestCheckReceiverLogsViews(t *testing.T) {
}

func TestCheckProcessorTracesViews(t *testing.T) {
tt, err := obsreporttest.SetupTelemetry()
tt, err := obsreporttest.SetupTelemetryWithID(processor)
require.NoError(t, err)
t.Cleanup(func() { require.NoError(t, tt.Shutdown(context.Background())) })

Expand All @@ -148,7 +148,7 @@ func TestCheckProcessorTracesViews(t *testing.T) {
}

func TestCheckProcessorMetricsViews(t *testing.T) {
tt, err := obsreporttest.SetupTelemetry()
tt, err := obsreporttest.SetupTelemetryWithID(processor)
require.NoError(t, err)
t.Cleanup(func() { require.NoError(t, tt.Shutdown(context.Background())) })

Expand All @@ -173,7 +173,7 @@ func TestCheckProcessorMetricsViews(t *testing.T) {
}

func TestCheckProcessorLogViews(t *testing.T) {
tt, err := obsreporttest.SetupTelemetry()
tt, err := obsreporttest.SetupTelemetryWithID(processor)
require.NoError(t, err)
t.Cleanup(func() { require.NoError(t, tt.Shutdown(context.Background())) })

Expand Down

0 comments on commit b5a9d6c

Please sign in to comment.