1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2026-06-03 18:35:08 +02:00

otlptracegrpc: Check error on Shutdown in tests (#4517)

This commit is contained in:
Robert Pająk
2023-09-18 09:44:52 +02:00
committed by GitHub
parent 84f6b36815
commit 2373e9b1e9
@@ -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) {
@@ -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) {