Skip to content

Commit

Permalink
otlptracegrpc: Check error on Shutdown in tests (open-telemetry#4517)
Browse files Browse the repository at this point in the history
  • Loading branch information
pellared authored Sep 18, 2023
1 parent 84f6b36 commit 2373e9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exporters/otlp/otlptrace/otlptracegrpc/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func TestNewCollectorOnBadConnection(t *testing.T) {
endpoint := fmt.Sprintf("localhost:%s", collectorPortStr)
ctx := context.Background()
exp := newGRPCExporter(t, ctx, endpoint)
_ = exp.Shutdown(ctx)
require.NoError(t, exp.Shutdown(ctx))
}

func TestNewWithEndpoint(t *testing.T) {
Expand All @@ -197,7 +197,7 @@ func TestNewWithEndpoint(t *testing.T) {

ctx := context.Background()
exp := newGRPCExporter(t, ctx, mc.endpoint)
_ = exp.Shutdown(ctx)
require.NoError(t, exp.Shutdown(ctx))
}

func TestNewWithHeaders(t *testing.T) {
Expand Down

0 comments on commit 2373e9b

Please sign in to comment.